POST
/
organisations
/
{organisationId}
/
schema-utils
/
{schemaType}
/
source-url
curl --request POST \
  --url https://api.switchboard.svc.versori.io/v1alpha1/organisations/{organisationId}/schema-utils/{schemaType}/source-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sourceURL": "<string>"
}'
{
  "url": "<string>"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organisationId
string
required
schemaType
string
required

SchemaType is the type of schema which an App implements. The only supported values are currently "openapi", but is planned to be extended to include gRPC, GraphQL and SOAP.

Body

application/json
sourceURL
string
required

SourceURL is the URL which can be used to download the original schema document.

Response

200 - application/json
url
string
required

The URL to identify the schema. This is not publicly accessible and is to be used when creating an App.