Sachin Titus
05/10/2021, 6:56 AMFrank
sst.ApiGatewayV1Api
construct as mapping templates are only available for API Gateway REST API.Frank
new ApiGatewayV1Api(this, "Api", {
routes: {
"GET /notes": {
function: "src/list.main",
integrationOptions: {
requestTemplates: ...,
}
},
},
});
More examples on the integraion
options here - https://docs.aws.amazon.com/cdk/api/latest/docs/aws-apigateway-readme.html#working-with-models