/v2/apis/{apiId}/routes
POST
/v2/apis/{apiId}/routes
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/apis//routes' \
--header 'Content-Type: application/json' \
--data-raw '{
"apiKeyRequired": true,
"authorizationScopes": [
"string"
],
"authorizationType": "NONE",
"authorizerId": "string",
"modelSelectionExpression": "string",
"operationName": "string",
"requestModels": {
"property1": "string",
"property2": "string"
},
"requestParameters": {
"property1": {
"Required": true
}
},
"routeKey": "string",
"routeResponseSelectionExpression": "string",
"target": "string"
}'
Response Response Example
201 - Example 1
{
"ApiGatewayManaged": true,
"ApiKeyRequired": true,
"AuthorizationScopes": {},
"AuthorizationType": "NONE",
"AuthorizerId": "string",
"ModelSelectionExpression": "string",
"OperationName": "string",
"RequestModels": {
"property1": "string",
"property2": "string"
},
"RequestParameters": {
"property1": {
"Required": true
}
},
"RouteId": "string",
"RouteKey": "string",
"RouteResponseSelectionExpression": "string",
"Target": "string"
}
Request
Path Params
apiId
stringÂ
required
Body Params application/json
Responses
Modified at 2023-08-15 05:49:07