ves-io-schema-app_type-CustomAPI-GetSwaggerSpec

Examples of performing app_type CustomAPI GetSwaggerSpec

Usecase:

Perform GetSwaggerSpec on app_type

Request:

Request using vesctl:

vesctl request rpc app_type.CustomAPI.GetSwaggerSpec -i request.yaml --uri /public/namespaces/namespace-literal/app_types/app_type_name-literal/api_endpoints/swagger_spec --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

contentType: application/json
data: ""

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/namespace-literal/app_types/app_type_name-literal/api_endpoints/swagger_spec?app_type_name=&namespace='

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 12 May 2021 11:17:32 GMT
Vary: Accept-Encoding
Content-Length: 0