AWS SAM: The REST API doesn't contain any methods



I'm getting started with AWS SAM, and built a simple deployment based on this example from Amazon: .

My (very similar) code is available there:

When deploying, I am getting the following message: The REST API doesn't contain any methods (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException)

Checking online for this error, I find many occurrences, but they seem to be related to manually creating a deployment, which I am not doing here.

My code being extremely similar to the Amazon example, I cannot pinpoint the error.


asked 4 years ago435 views
1 Answer

I did continue investigating the issue, and it seems that the error is indeed mine: Swagger definition requires to define methods in the body directly ; I just wanted to use it to create the resource policy.

Looks like I'm waiting for this:

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions