Amazon API Gateway REST API Reference

restapi:request-validators

Gets the RequestValidators collection of a specified RestApi.

HTTP Request

GET /restapis/<restapi_id>/requestvalidators

Response

RequestValidators

Remarks

Example: Get the RequestValidators collection of an API

Request

The following example request retrieves the RequestValidators collection of the given RestApi (mkhqppt4e4):

GET /restapis/mkhqppt4e4/requestvalidators HTTP/1.1
Content-Type: application/json
Host: apigateway.us-east-1.amazonaws.com
X-Amz-Date: 20170223T172652Z
Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns the 200 OK status code and a payload similar to the following:

{
  "_links": {
    "curies": {
      "href": "http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-requestvalidator-{rel}.html&quot;,
      "name": "requestvalidator",
      "templated": true
    },
    "self": {
      "href": "/restapis/mkhqppt4e4/requestvalidators"
    },
    "item": [
      {
        "href": "/restapis/mkhqppt4e4/requestvalidators/1t3hul"
      },
      {
        "href": "/restapis/mkhqppt4e4/requestvalidators/8sbwvf"
      }
    ],
    "requestvalidator:by-id": {
      "href": "/restapis/mkhqppt4e4/requestvalidators/{requestvalidator_id}",
      "templated": true
    },
    "requestvalidator:create": {
      "href": "/restapis/mkhqppt4e4/requestvalidators"
    }
  },
  "_embedded": {
    "item": [
      {
        "_links": {
          "self": {
            "href": "/restapis/mkhqppt4e4/requestvalidators/1t3hul"
          },
          "request-validator-delete": {
            "href": "/restapis/mkhqppt4e4/requestvalidators/1t3hul"
          },
          "request-validator-update": {
            "href": "/restapis/mkhqppt4e4/requestvalidators/1t3hul"
          }
        },
        "id": "1t3hul",
        "name": "params-only",
        "validateRequestBody": false,
        "validateRequestParameters": true
      },
      {
        "_links": {
          "self": {
            "href": "/restapis/mkhqppt4e4/requestvalidators/8sbwvf"
          },
          "request-validator-delete": {
            "href": "/restapis/mkhqppt4e4/requestvalidators/8sbwvf"
          },
          "request-validator-update": {
            "href": "/restapis/mkhqppt4e4/requestvalidators/8sbwvf"
          }
        },
        "id": "8sbwvf",
        "name": "all",
        "validateRequestBody": true,
        "validateRequestParameters": true
      }
    ]
  }
}

See Also

AWS CLI