In this section, we’ll test our REST API Gateway endpoints using the AWS Management Console. The console provides a user-friendly interface to verify each endpoint’s functionality before deploying to a stage.
Access the Test tab of each API resource - method
Test each resource - method
API Resource - Method | Lambda Function | Test requirement |
---|---|---|
/users GET | list-users | Return all users from the |
/users POST | create-user | A new user is added to the system |
/users/{userId} GET | get-user | Return detail of a specific user |
/users/{userId} PATCH | update-user | The user detail is updated with the new data |
/users/{userId} DELETE | delete-user | The user is removed from the system |
Verify Responses
The Management Console’s test feature allows you to quickly validate your API without needing to deploy it to a stage, making it ideal for development and debugging.