ves-io-schema-virtual_host-ApiepCustomAPI-GetSwaggerSpec

Examples of performing virtual_host ApiepCustomAPI GetSwaggerSpec

Usecase:

Perform GetSwaggerSpec on virtual_host

Request:

Request using vesctl:

vesctl request rpc virtual_host.ApiepCustomAPI.GetSwaggerSpec -i request.yaml --uri /public/namespaces/namespace-literal/virtual_hosts/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-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/ml/namespaces/namespace-literal/virtual_hosts/name-literal/api_endpoints/swagger_spec?name=&namespace='

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:36 GMT
Vary: Accept-Encoding
Content-Length: 0