1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
For an API Gateway operation like this:
/bookings/trains/{trainID}
Calling a backend API like this:
/bookings/clients/{clientID}/trains/{trainID}
The trainID Path Parameter, "7010", will map straight across to the Endpoint URL defined in your API Integration Request.
To get the clientID from your Lambda Custom Authorizer, you would need to make sure the authorizer returns the following context map:
"context" : {
"clientID": "123"
}
Then implement a Request Mapping Template with the following line of code:
#set($context.requestOverride.path.clientID = $context.authorizer.clientID)
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans