0

I'm following the AWS Tutorial "Using Lambda with API Gateway". I have set up my Lambda function and API gateway, and now want to test the API connection to the lambda function (I tried in CURL and got a 500, I want to dig deeper).

According to the tutorial, I can test using some kind of webapp feature:

You're now ready to test the integration of your API Gateway API method with your Lambda function and your DynamoDB table. Using the API Gateway console, you send requests directly to your POST method using the console's test function.

  1. In the API Gateway console, choose your API...

I do so:

screenshot of my API list

  1. In the Resources tree... choose your POST method.

There is no resources tree, nor does ctrl+f show anything like that:

screenshot of the navigation tree

However the tutorial mentions the /dynamodbmanager route so I click "routes." There I can see my POST method, so I click it.

3 In the Method Execution pane, in the Client box, choose Test.

There is no Method Execution pane, there is no Client box, there is no Test button:

screenshot of the routes screen

The AWS help article "Use the API Gateway console to test a REST API method" has essentially identical instructions.

Perhaps the docs are out of date? How can I test APIs in API Gateway within the AWS website?

Caleb Jay
  • 2,159
  • 3
  • 32
  • 66

1 Answers1

0

The API type, on creation, was incorrect. I had selected maybe HTTP type, when I should have selected REST type:

screenshot of API create page

When I made a new API of the REST type, I can see the resources tree:

screenshot of navigation tree

Caleb Jay
  • 2,159
  • 3
  • 32
  • 66