API Implementation

Create API Implementation

Changed on

Creates an implementation for an API. If all operations in an API are implemented by a single gateway service and the service has no routes that are not part of the API, then the API can be linked to the service. For cases where an API is implemented by multiple gateway services, only a subset of routes in one or more gateway services, or API operations need to be made available for API packages, then the API should be linked to the control plane that defines the routes that overlap with the API.

post/v3/apis/{apiId}/implementations

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

apiId, string uuid required
Example:9f5061ce-78f6-4452-9108-ad7c02821fd5

The UUID API identifier

Request body

union required

An entity that implements an API

intersection required
OR
intersection required

Example request

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "environment_id": "2747d1e5-8246-4f65-a939-b392f1ee17f8",
  "environment": {
    "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
    "name": "production"
  },
  "service": {
    "control_plane_id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
    "id": "7710d5c4-d902-410b-992f-18b814155b53",
    "auth_strategy_sync_error": {
      "control_plane_error": "control_plane_error_unavailable",
      "message": "Unable to connect to the control plane to update plugin"
    }
  }
}

Response

An API implementation

union required

An entity that implements an API

intersection required
OR
intersection required

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "environment_id": "2747d1e5-8246-4f65-a939-b392f1ee17f8",
  "environment": {
    "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
    "name": "production"
  },
  "service": {
    "control_plane_id": "9f5061ce-78f6-4452-9108-ad7c02821fd5",
    "id": "7710d5c4-d902-410b-992f-18b814155b53",
    "auth_strategy_sync_error": {
      "control_plane_error": "control_plane_error_unavailable",
      "message": "Unable to connect to the control plane to update plugin"
    }
  }
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    35 more changes in this revision