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

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.

主站蜘蛛池模板: 如皋市| 偃师市| 合江县| 蒙阴县| 新沂市| 麻栗坡县| 忻州市| 陆川县| 革吉县| 巴楚县| 喀喇沁旗| 浮山县| 吉隆县| 仲巴县| 彭山县| 惠来县| 贺州市| 揭东县| 汉阴县| 洪江市| 弋阳县| 讷河市| 垣曲县| 宁阳县| 桃江县| 鸡东县| 合水县| 体育| 永城市| 南宫市| 江安县| 漾濞| 黄梅县| 陇川县| 长春市| 上思县| 台湾省| 台前县| 夹江县| 肃北| 长春市|