serverless / examples

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
https://www.serverless.com/examples/
Other
11.45k stars 4.47k forks source link

Wrong API creation: REST instead of simple HTTP #630

Open hassanhashmy opened 3 years ago

hassanhashmy commented 3 years ago

This link is creating wrong RESTfull api instead of simple HTTP https://github.com/serverless/examples/tree/master/aws-python-simple-http-endpoint

pgrzesik commented 3 years ago

Hello @hassanhashmy - I wouldn't say it's wrong but it's definitely a bit misleading at this point. When this example was created, REST API was the only type available and in the Framework the event for REST API is called http. Later, when HTTP API was made available, a new event was introduced for that integration, called httpApi. This example concerns http event but I see how it might be confusing from REST/HTTP API distinction for API Gateway.