Skip to Content
REST APIHttp Api Definition API

Http Api Definition API

List http api definitions in the environment

PathMethodProtected
/v1/envs/{environment_id}/http-api-definitionsGETYes

Example Response JSON

{ "values": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "name": "string", "hash": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ] }

Create a new api-definition in the environment

PathMethodProtected
/v1/envs/{environment_id}/http-api-definitionsPOSTYes

Example Request JSON

{ "name": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ] }

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "name": "string", "hash": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }

Get http api definition

PathMethodProtected
/v1/http-api-definitions/{http_api_definition_id}GETYes

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "name": "string", "hash": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }

Delete http api definition

PathMethodProtected
/v1/http-api-definitions/{http_api_definition_id}DELETEYes

Query Parameters

NameTypeRequiredDescription
current_revisionintegerYes-

Update http api definition

PathMethodProtected
/v1/http-api-definitions/{http_api_definition_id}PATCHYes

Example Request JSON

{ "currentRevision": 0, "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ] }

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "name": "string", "hash": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }

Get a specific http api definition revision

PathMethodProtected
/v1/http-api-definitions/{http_api_definition_id}/revisions/{revision}GETYes

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "name": "string", "hash": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }

Get http api definition by name in the environment

PathMethodProtected
/v1/envs/{environment_id}/http-api-definitions/{http_api_definition_name}GETYes

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "name": "string", "hash": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }

Get http api definition by name in the deployment

PathMethodProtected
/v1/envs/{environment_id}/deployments/{deployment_revision}/http-api-definitions/{http_api_definition_name}GETYes

Example Response JSON

{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "name": "string", "hash": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }

Get openapi spec of http api definition in the deployment

PathMethodProtected
/v1/envs/{environment_id}/deployments/{deployment_revision}/http-api-definitions/{http_api_definition_name}/openapiGETYes

Example Response JSON

{}

List http api definitions in the deployment

PathMethodProtected
/v1/envs/{environment_id}/deployments/{deployment_revision}/http-api-definitionsGETYes

Example Response JSON

{ "values": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "revision": 0, "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "name": "string", "hash": "string", "version": "string", "routes": [ { "method": "get", "path": "string", "binding": { "type": "Worker", "componentName": "string", "idempotencyKey": "string", "invocationContext": "string", "response": "string" }, "security": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ] }

Http Api Definition API Errors

Status CodeDescriptionBody
400Invalid request, returning with a list of issues detected in the request{"errors":["string"]}
401Unauthorized request{"error":"string"}
403Forbidden Request{"error":"string"}
404Entity not found{"error":"string"}
409{"error":"string"}
422Limits of the plan exceeded{"error":"string"}
500Internal server error{"error":"string"}
Last updated on