CreateRestApiRequest

The POST Request to add a new RestApi resource to your collection.

APIs.ioEngineeringPlatform

Properties

Name Type Description
name object
description object
version object
cloneFrom object
binaryMediaTypes object
minimumCompressionSize object
apiKeySource object
endpointConfiguration object
policy object
tags object
disableExecuteApiEndpoint object
View JSON Schema on GitHub

JSON Schema

apis-io-engineering-platform-createrestapirequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateRestApiRequest",
  "title": "CreateRestApiRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "The name of the RestApi."
        }
      ]
    },
    "description": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "The description of the RestApi."
        }
      ]
    },
    "version": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "A version identifier for the API."
        }
      ]
    },
    "cloneFrom": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "The ID of the RestApi that you want to clone from."
        }
      ]
    },
    "binaryMediaTypes": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ListOfString"
        },
        {
          "description": "The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads."
        }
      ]
    },
    "minimumCompressionSize": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NullableInteger"
        },
        {
          "description": "A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size."
        }
      ]
    },
    "apiKeySource": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ApiKeySourceType"
        },
        {
          "description": "The source of the API key for metering requests according to a usage plan. Valid values are: &gt;<code>HEADER</code> to read the API key from the <code>X-API-Key</code> header of a request. <code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code> from a custom authorizer."
        }
      ]
    },
    "endpointConfiguration": {
      "allOf": [
        {
          "$ref": "#/components/schemas/EndpointConfiguration"
        },
        {
          "description": "The endpoint configuration of this RestApi showing the endpoint types of the API. "
        }
      ]
    },
    "policy": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration."
        }
      ]
    },
    "tags": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MapOfStringToString"
        },
        {
          "description": "The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with <code>aws:</code>. The tag value can be up to 256 characters."
        }
      ]
    },
    "disableExecuteApiEndpoint": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Boolean"
        },
        {
          "description": "Specifies whether clients can invoke your API by using the default <code>execute-api</code> endpoint. By default, clients can invoke your API with the default <code>https://{api_id}.execute-api.{region}.amazonaws.com</code> endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint"
        }
      ]
    }
  },
  "description": "The POST Request to add a new RestApi resource to your collection."
}