curl --request POST \
--url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/schema-utils/{schemaType}/import \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'{
"availableServers": [
{
"name": "<string>",
"url": "<string>"
}
],
"schemaMetadata": {
"type": "<string>",
"version": "<string>",
"url": "<string>"
},
"supportedAuthConfigs": [
{
"type": "<string>",
"isValid": true,
"data": {
"discoveryUrl": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"scopes": {}
}
}
],
"id": "<string>",
"title": "<string>"
}Create a schema record and import the operations to store locally as DB records.
Deprecated in favour of CreateSchema (POST /organisations//schemas)
curl --request POST \
--url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/schema-utils/{schemaType}/import \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'{
"availableServers": [
{
"name": "<string>",
"url": "<string>"
}
],
"schemaMetadata": {
"type": "<string>",
"version": "<string>",
"url": "<string>"
},
"supportedAuthConfigs": [
{
"type": "<string>",
"isValid": true,
"data": {
"discoveryUrl": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"scopes": {}
}
}
],
"id": "<string>",
"title": "<string>"
}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.
ImportSchemaFromURLRequest contains the necessary parameters to create a schema record from a URL.
The URL which can be used to download the schema document.
SchemaInfoResponse is the response containing the SchemaInfo of a schema.
Show child attributes
Show child attributes
SupportedAuthConfigs is a list of authentication standards which can be used to connect a user's account to this app. At least one auth type needs to be valid for the App to be used by a user.
Show child attributes
The ID of the Schema record if it is stored.
Title is calculated from the parsed schema. Not all schemas contain this information so may be null.