ves-io-schema-virtual_host-ApiepCustomAPI-GetAPIEndpointPDF

Examples of performing virtual_host ApiepCustomAPI GetAPIEndpointPDF

Usecase:

Perform GetAPIEndpointPDF on virtual_host

Request:

Request using vesctl:

vesctl request rpc virtual_host.ApiepCustomAPI.GetAPIEndpointPDF -i request.yaml --uri /public/namespaces/namespace-literal/virtual_hosts/name-literal/api_endpoint/pdf --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

{}

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/ml/namespaces/namespace-literal/virtual_hosts/name-literal/api_endpoint/pdf?collapsed_url=&method=&name=&namespace='

curl response:

HTTP/1.1 200 OK
Content-Length: 22
Content-Type: application/json
Date: Wed, 12 May 2021 11:19:16 GMT
Vary: Accept-Encoding

{
  "pdf_info": null
}