Search
🧫

Amazon API Gateway - Transformation 요청/응답 메시지 변환하기 (최철우, AWS)

Amazon API Gateway

매핑 - HTTP Request Body를 우리의 의도에 따라 다른 형태의 메시지로 변경
매핑 작업은 VTL(Velocity Template Language)를 사용해서 진행.

Demo

API Gateway

Lambda

요청 메시지

변환 전

변환 후

Integration Request > Mapping Templates

응답 메시지

변환 전

변환 후

Integration Response > Mapping Templates

참고

Apache Velocity Project - VTL(Velocity Template Language)
Amazon API Gateway > Developer Guide > Mapping template and access logging reference