Create API
POST {{url}}/apis?workspace={{workspaceId}}
This call creates a new API with a default API Version.
Request body should contain an api
object which should atleast have a property name
.
Response contains an api
object with all the details related to the created API, namely, id
, name
, summary
, description
etc.
Requires API Key as
X-Api-Key
request header orapikey
URL query parameter.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
workspace | string | Workspace in which the API is to be created |
Request Body
{"api"=>{"name"=>"Sync Service API", "summary"=>"This is supposed to be a short summary.", "description"=>"This is description."}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-api-key | string | ||
Content-Type | string |