UsersAPI API in API Gateway console./users resource.Create resource.
Create resource page:For Resource path: Choose /users
For Resource name: Fill in {userId}.
Be aware of the two brackets: { and }.
Click Create resource.

/users/{userId} resource you’ve just created.Create method.
Create method page’, Method details section:Method type: Select GET.get-user function.
Keep other settings as default.
Create method.You will be redirect to the detail of the /users/{userId} - GET method.

Integration request tab.Integration request settings section, click Edit.
Edit integration request page:
URL path parameters section, click Add path parameter.
Name: Fill in userId.Mapped from: Fill in method.request.path.userId.
Mapping templates section, click Add mapping template.
Content type: Fill in application/json.
Template body: Fill in:
{
"id": "$input.params('userId')"
}

Save.