1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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)
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전