curl --request POST \
--url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/apps/{appId}/operations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"schemaId": "<string>",
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}
'{
"schemaId": "<string>",
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}Create a new operation for the App in the provided organisation
curl --request POST \
--url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/apps/{appId}/operations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"schemaId": "<string>",
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}
'{
"schemaId": "<string>",
"id": "<string>",
"method": "GET",
"description": "<string>",
"name": "<string>",
"path": "<string>",
"request": {
"parameters": [
{
"name": "<string>",
"type": "string",
"location": "path",
"required": true
}
],
"body": {}
},
"response": {},
"callbacks": {},
"components": {}
}CreateAppOperationRequest is the request body for creating a new Operation for an App.
The ID of the schema this object belongs to.
The ID of the operation, for OpenAPI this will be the operationId field if set, otherwise the request's
type and path.
The http method that the operation uses.
GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE, SQL A human-friendly description of what this operation does.
A human-friendly name based on the operation ID.
The path used to call the operation.
Show child attributes
The response body of the operation.
The callbacks of the operation.
An optional map of components the operation refers to indexed by ref.
GetAppOperationSchemaResponse is the response definition containing the schema for a newly created Operation.
The ID of the schema this object belongs to.
The ID of the operation, for OpenAPI this will be the operationId field if set, otherwise the request's
type and path.
The http method that the operation uses.
GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE, SQL A human-friendly description of what this operation does.
A human-friendly name based on the operation ID.
The path used to call the operation.
Show child attributes
The response body of the operation.
The callbacks of the operation.
An optional map of components the operation refers to indexed by ref.