class
Amazonite::ApiGateway::DocumentationPartLocation
- Amazonite::ApiGateway::DocumentationPartLocation
- Reference
- Object
Overview
Specifies the target API entity to which the documentation applies.
Included Modules
- JSON::Serializable
Defined in:
api_gateway/documentation_part_location.crConstructors
- .new(pull : JSON::PullParser)
- .new(type : DocumentationPartType, path : String | Nil = nil, method : String | Nil = nil, status_code : String | Nil = nil, name : String | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#method : String | Nil
The HTTP verb of a method.
-
#method=(method : String | Nil)
The HTTP verb of a method.
-
#name : String | Nil
The name of the targeted API entity.
-
#name=(name : String | Nil)
The name of the targeted API entity.
-
#path : String | Nil
The URL path of the target.
-
#path=(path : String | Nil)
The URL path of the target.
-
#status_code : String | Nil
The HTTP status code of a response.
-
#status_code=(status_code : String | Nil)
The HTTP status code of a response.
-
#type : DocumentationPartType
The type of API entity to which the documentation content applies.
-
#type=(type : DocumentationPartType)
The type of API entity to which the documentation content applies.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The HTTP verb of a method. It is a valid field for the API entity types of METHOD,
PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE,
RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. When an
applicable child entity inherits the content of an entity of the same type with more general
specifications of the other location attributes, the child entity's #method attribute must
match that of the parent entity exactly.
The HTTP verb of a method. It is a valid field for the API entity types of METHOD,
PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE,
RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any method. When an
applicable child entity inherits the content of an entity of the same type with more general
specifications of the other location attributes, the child entity's #method attribute must
match that of the parent entity exactly.
The name of the targeted API entity. It is a valid and required field for the API entity types
of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY
and RESPONSE_HEADER. It is an invalid field for any other entity type.
The name of the targeted API entity. It is a valid and required field for the API entity types
of AUTHORIZER, MODEL, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY
and RESPONSE_HEADER. It is an invalid field for any other entity type.
The URL path of the target. It is a valid field for the API entity types of RESOURCE,
METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE,
RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for the root resource. When an
applicable child entity inherits the content of another entity of the same type with more
general specifications of the other location attributes, the child entity's #path attribute
must match that of the parent entity as a prefix.
The URL path of the target. It is a valid field for the API entity types of RESOURCE,
METHOD, PATH_PARAMETER, QUERY_PARAMETER, REQUEST_HEADER, REQUEST_BODY, RESPONSE,
RESPONSE_HEADER, and RESPONSE_BODY. The default value is / for the root resource. When an
applicable child entity inherits the content of another entity of the same type with more
general specifications of the other location attributes, the child entity's #path attribute
must match that of the parent entity as a prefix.
The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE,
RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any status code. When an
applicable child entity inherits the content of an entity of the same type with more general
specifications of the other location attributes, the child entity's statusCode attribute
must match that of the parent entity exactly.
The HTTP status code of a response. It is a valid field for the API entity types of RESPONSE,
RESPONSE_HEADER, and RESPONSE_BODY. The default value is * for any status code. When an
applicable child entity inherits the content of an entity of the same type with more general
specifications of the other location attributes, the child entity's statusCode attribute
must match that of the parent entity exactly.
The type of API entity to which the documentation content applies. Valid values are API,
AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER,
REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content
inheritance does not apply to any entity of the API, AUTHORIZER, METHOD, MODEL,
REQUEST_BODY, or RESOURCE type.
The type of API entity to which the documentation content applies. Valid values are API,
AUTHORIZER, MODEL, RESOURCE, METHOD, PATH_PARAMETER, QUERY_PARAMETER,
REQUEST_HEADER, REQUEST_BODY, RESPONSE, RESPONSE_HEADER, and RESPONSE_BODY. Content
inheritance does not apply to any entity of the API, AUTHORIZER, METHOD, MODEL,
REQUEST_BODY, or RESOURCE type.