Testing our Blog API
- Make a POST request on /blogs route with the following JSON:
- { “title”: “Deploy your React Application on AWS”, “content”: “This is the content for my first blog”, “author”: “Arindam Halder”}
- Make a GET request on /blogs route, you can see all blogs
- Make a GET request on /blogs/{id} route, you can see the particular blog.
- Make a PATCH request on /blogs/{id} route with the following JSON:
- {“key”: “author”, “value”: “arindam369”}
- Make a DELETE request on /blogs/{id} route, the blog will be deleted
Building a Serverless Blog with AWS Lambda and API Gateway
AWS Lambda is a serverless computing service offered by AWS. It enables you to run code in response to events without the need to manage servers. This event-driven service charges you based on actual compute time, making it cost-effective. Lambda supports various programming languages, scales automatically, and seamlessly integrates with other AWS services, making it an ideal choice for building dynamic applications with minimal operational overhead.