Setting response model via Serverless framework for AWS API Gateway

Viewed 578

I am trying to set up my AWS API Gateway via the Serverless Framework. So far it works good but no I am struggling setting the method response as a model. I got it working for the request but not for the response and I haven't found a hint in the documentation.

      ...
      request:
        passThrough: NEVER
        schema:
          application/json: ${file(requestModel.json)}
        template:
          application/json: ${file(requestMapping.template)}
      response:
        headers:
          Content-Type: "'application/json'"
        template: $input.body
      ...

If I include a schema in the response, it is ignored...

0 Answers
Related