ves-io-schema-user-CustomAPI-GetTOS

Examples of performing user CustomAPI GetTOS

Usecase:

get TOS for the requester itself

Request:

Request using vesctl:

vesctl request rpc user.CustomAPI.GetTOS -i request.yaml --uri /public/custom/namespaces/system/tos --http-method GET

where file request.yaml has following contents:

namespace: system

vesctl yaml response:

{}

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/custom/namespaces/system/tos?namespace=system'

curl response:

HTTP/1.1 200 OK
Content-Length: 33
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:51:22 GMT
Vary: Accept-Encoding

{
  "version": "",
  "text": ""
}