April 2018
Intermediate to advanced
260 pages
6h 31m
English
Now that we have the URL and query parameter mapping working, it's time to begin transforming the response generated from our new API. Since the old JSON structure is different, we'll use Gateway's Body Mapping Templates to take the output from the JSON response and rewrite it. API Gateway uses the Velocity Template language and system to perform this work. If you've ever done web programming with a modern-day web framework, you've undoubtedly worked with a templating library. There are many. Velocity isn't magic; it serves the same purpose as any other templating system: taking some marked up template in a particular syntax along with some contextual data and rendering an output string.
In the Method Execution ...
Read now
Unlock full access