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

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.

主站蜘蛛池模板: 武定县| 安图县| 内乡县| 阿拉善盟| 尉氏县| 蒙自县| 河源市| 高陵县| 沐川县| 上犹县| 靖江市| 东阳市| 迁西县| 福海县| 平山县| 丹寨县| 罗田县| 崇礼县| 宝兴县| 房山区| 江油市| 中卫市| 桦川县| 略阳县| 乌拉特前旗| 深州市| 涡阳县| 剑阁县| 易门县| 武强县| 尚志市| 平原县| 灵川县| 会理县| 达拉特旗| 张北县| 石屏县| 和田市| 嫩江县| 高邮市| 确山县|