Integrate /users - GET method with list-users

  1. Open APIs section of the API Gateway console.
  2. In the list of the APIs, click on the name of the API (UsersAPI).

alt text

  1. You will be redirected to the Resources section of the UsersAPI.

After you create an API, you will be automatically redirected from the APIs section of the API Gateway to the Resources section of that API (e.g. API: UsersAPI).

  1. Click Create resource

alt text

  1. In the Create resource page
    • For Resource path: Choose /
    • For Resource name: Fill in users.
    • Click Create resource.

alt text

  1. Click on the users resource you’ve just created.
  2. Click Create method.

alt text

  1. In the Create method page, Method details section:
    • Method type: Select GET.
    • Integration type: Keep Lambda function.
    • Lambda function: Choose the list-users function.

alt text

  1. Keep other settings as default.
    • Scroll to the bottom and click Create method.

alt text

  1. You will be redirect to the detail of the /users - GET method.

alt text