Skip to content

Commit 9f4ee51

Browse files
mploskiheitorlessa
andauthored
Update docs/quickstart.md
Co-authored-by: Heitor Lessa <[email protected]>
1 parent 74ee6da commit 9f4ee51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/quickstart.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ Let's configure our base application to look like the following code snippet.
6969
Description: "API Gateway endpoint URL for Prod stage for Hello World function"
7070
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
7171
```
72-
Our lambda code consists of the `lambda_handler` method that is invoked by the API and the `hello` method that returns the results to the API gateway and is invoked by the handler itself.
72+
Our Lambda code consists of an entry point function named `lambda_handler`, and a `hello` function.
73+
74+
When API Gateway receives a request, Lambda will call our `lambda_handler` function, subsequently calling the `hello` function. API Gateway will use this response to return the correct HTTP Status Code and payload back to the caller.
7375
The SAM model configures API Gateway, which redirects traffic to Lambda for one path only: `hello`.
7476
!!! Warning
7577
For simplicity, we do not set up authentication and authorisation in the example!

0 commit comments

Comments
 (0)