This code makes a lot more sense if you read its corresponding blog post at https://code402.com/aws-api-gateway-example
Source code for AWS CloudFormation templates that demonstrate how to set up a REST service on Amazon API Gateway backed by a Lambda function in JavaScript or Java.
Please check the java
or node
directories for examples.