Test our API
Now we can test deployed REST API, we can invoke the API through any browser client to test out the API, below are sample API calls.
GET Method
In the below image, I’ve invoked an API with the GET method, which gave us a sample message.
Note: As we didn’t set any authorization, no need to pass any authentication headers or data to invoke our API.
POST Method
In the below image, I’ve invoked an API with the POST method, with the request body containing the name key, which returns a dynamic response from Lambda.
Build an API Gateway REST API with Lambda Integration
Pre-requisite: AWS
Amazon Web Services is a leading cloud provider which provides us with plenty of Paas, and Iaas, and services that we can use to build and deploy our applications. we going to build and Deploy a REST API with API Gateway which is integrated with AWS Lambda and expose GET and POST methods, here we going to use an open-source framework Serverless for deploying our API.