官术网_书友最值得收藏!

Function layout

In our example, we will implement a pattern where a single Lambda function will handle a single grouping of URL endpoints. The initial set of endpoints that we will implement will be the following:

  • List coffee cupping sessions: GET /session
  • Create a coffee cupping session: POST /session
  • Get coffee cupping session details: GET /session/{id}
  • Delete a coffee cupping session: DELETE /session/{id}

Two unique URLs will map to two Lambda functions. These lambda functions will be responsible for inspecting the HTTP request passed in from API Gateway, determining what HTTP method is being called, and invoking the appropriate application code to fulfill the request:

Request routing for a /session endpoint. The application code will inspect the HTTP method and route to the appropriate application code for execution.

主站蜘蛛池模板: 定远县| 辽源市| 永川市| 盐源县| 宝坻区| 田阳县| 视频| 五大连池市| 新宾| 兴安盟| 建平县| 鄂托克旗| 茶陵县| 浑源县| 仙桃市| 龙口市| 拉孜县| 台中市| 巨野县| 平舆县| 英山县| 屯门区| 乐东| 诸暨市| 仙游县| 芜湖县| 肇东市| 华安县| 西和县| 长宁县| 岳阳市| 井研县| 普宁市| 西峡县| 新兴县| 岳普湖县| 铁岭县| 鹰潭市| 许昌市| 岢岚县| 华池县|