ves-io-schema-shape-recognize-CustomAPI-ValidateSrcTagInjectionAddon

Examples of performing shape_recognize CustomAPI ValidateSrcTagInjectionAddon

Usecase:

Validate JS tag injection addon

Request:

Request using vesctl:

vesctl request rpc shape_recognize.CustomAPI.ValidateSrcTagInjectionAddon -i request.yaml --uri /public/namespaces/system/recognize/addon/validate/src_tag_injection --http-method POST

where file request.yaml has following contents:

{}

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{}' -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/recognize/namespaces/system/recognize/addon/validate/src_tag_injection'

curl response:

HTTP/1.1 200 OK
Content-Length: 42
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:50:46 GMT
Vary: Accept-Encoding

{
  "isInjected": false,
  "message": ""
}