x-amazon-apigateway-integration.requestTemplates object
Specifies mapping templates for a request payload of the specified MIME types.
Property name | Type | Description |
---|---|---|
|
string |
An example of the MIME type is |
x-amazon-apigateway-integration.requestTemplates example
The following example sets mapping templates for a request payload of the
application/json
and application/xml
MIME types.
"requestTemplates" : { "application/json" : "#set ($root=$input.path('$')) { \"stage\": \"$root.name\", \"user-id\": \"$root.key\" }", "application/xml" : "#set ($root=$input.path('$')) <stage>$root.name</stage> " }