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

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.

主站蜘蛛池模板: 集贤县| 清丰县| 长泰县| 耒阳市| 泾阳县| 泰和县| 宜良县| 大埔区| 余江县| 仁化县| 甘德县| 铁岭县| 天门市| 青河县| 姜堰市| 巫溪县| 西青区| 大埔区| 桓仁| 富民县| 张掖市| 明星| 定襄县| 泰州市| 汪清县| 永年县| 庆城县| 平顶山市| 蓬溪县| 镇平县| 寿阳县| 皮山县| 平塘县| 黄梅县| 奎屯市| 大姚县| 惠安县| 邳州市| 汉阴县| 丹阳市| 清新县|