How to build a REST API from API Gateway and AWS Lambda | Python

preview_player
Показать описание
API Gateway is a powerful AWS service which lets you to create REST, HTTP, and WebSocket APIs at any scale and integrate it with an AWS service like lambda.
In this step by step tutorial , I explain you how to create a simple REST API which is backed by Lambda.

#API #RESTAPI #APIGateway
Рекомендации по теме
Комментарии
Автор

Thank you Sir! Great detailed yet simple explanation. In the sea of videos and articles, this one really helped in GETting the results.

mtechthesis
Автор

Hello Sir, got a Key error, for ['queryStringParameters'] line.

Any suggestions?

jayguwalani
Автор

How can we execute our django project on aws lambda

rushikeshshete
Автор

The code:

import json

def lambda_handler(event, context):
# TODO implement
first_name =
last_name =

app_response = {}

app_response['message']= f'The details are {first_name} and {last_name}'
app_response['profession'] = 'cricket'
app_response['age'] = 40


responseObject = {}
responseObject['statusCode'] = 200
responseObject['headers'] = {}
= 'application/json'
responseObject['body'] = json.dumps(app_response)

return responseObject

zaidmughal
visit shbcf.ru