{"id":11756,"date":"2023-08-10T10:46:58","date_gmt":"2023-08-10T02:46:58","guid":{"rendered":"http:\/\/92it.top\/?p=11756"},"modified":"2023-08-10T10:46:58","modified_gmt":"2023-08-10T02:46:58","slug":"aws%ef%bc%9aapi-gateway","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=11756","title":{"rendered":"AWS\uff1aAPI Gateway"},"content":{"rendered":"\n<p><strong>\u4e00\u3001\u6982\u8ff0<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Amazon API Gateway \u662f\u4e00\u9879 AWS \u670d\u52a1\uff0c\u8ba9\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u521b\u5efa\u3001\u53d1\u5e03\u3001\u7ef4\u62a4\u3001\u76d1\u63a7\u548c\u4fdd\u62a4\u4efb\u4f55\u89c4\u6a21\u7684 API\u3002\u60a8\u53ef\u4ee5\u521b\u5efa\u80fd\u591f\u8bbf\u95ee AWS\u3001\u5176\u4ed6 Web \u670d\u52a1\u4ee5\u53ca\u5b58\u50a8\u5728 AWS \u4e91\u4e2d\u7684\u6570\u636e\u7684 API\u3002<\/p>\n\n\n\n<p>\u53ef\u5c06 API Gateway \u89c6\u4e3a\u4e91\u4e2d\u7684\u4e00\u4e2a\u80cc\u677f\uff0c\u7528\u4e8e\u8fde\u63a5 AWS \u670d\u52a1\u548c\u5176\u4ed6\u516c\u6709\u6216\u79c1\u6709\u7f51\u7ad9\u3002\u5b83\u53ef\u4ee5\u63d0\u4f9b\u4e00\u81f4\u7684 RESTful \u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3 (API)\uff0c\u8ba9\u79fb\u52a8\u548c Web \u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u8bbf\u95ee AWS \u670d\u52a1\u3002<\/p>\n\n\n\n<p>API Gateway \u7684\u67b6\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002<br><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-75.png\" alt=\"\" class=\"wp-image-11757\" width=\"411\" height=\"342\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-75.png 920w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-75-300x250.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-75-768x639.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-75-830x691.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-75-230x192.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-75-350x291.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-75-480x400.png 480w\" sizes=\"(max-width: 411px) 100vw, 411px\" \/><\/figure><\/div>\n\n\n\n<p><strong>\u4e8c\u3001\u5e94\u7528\u573a\u666f<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4f7f\u7528 API Gateway \u7684\u5f00\u53d1\u4eba\u5458\u6709\u4e24\u79cd\uff1a\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4eba\u5458\u548c API \u5f00\u53d1\u4eba\u5458\u3002\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4eba\u5458\u901a\u8fc7\u5728 API Gateway \u4e2d\u8c03\u7528 API \u65b9\u6cd5\uff0c\u6765\u6784\u5efa\u4e00\u4e2a\u6b63\u5e38\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u4ee5\u8c03\u7528 AWS \u670d\u52a1\u3002API \u5f00\u53d1\u4eba\u5458\u521b\u5efa\u548c\u90e8\u7f72 API\uff0c\u4ee5\u4fbf\u542f\u7528 API Gateway \u4e2d\u6240\u9700\u7684\u529f\u80fd\u3002API\u5f00\u53d1\u4eba\u5458\u5fc5\u987b\u662f\u62e5\u6709 API \u7684 AWS \u8d26\u6237\u4e2d\u7684 IAM \u7528\u6237<\/p>\n\n\n\n<p>API Gateway \u53ef\u4ee5\u521b\u5efa\u3001\u914d\u7f6e\u548c\u6258\u7ba1 RESTful API\uff0c\u4ece\u800c\u8ba9\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u8bbf\u95ee AWS \u4e91\u3002\u4f8b\u5982\uff0c\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u8c03\u7528 API Gateway \u4e2d\u7684 API\uff0c\u4ee5\u5c06\u7528\u6237\u7684\u5e74\u6536\u5165\u548c\u652f\u51fa\u6570\u636e\u4e0a\u4f20\u5230 Amazon Simple Storage Service \u6216 Amazon DynamoDB\uff0c\u7136\u540e\u5728 AWS Lambda \u4e2d\u5904\u7406\u6570\u636e\u4ee5\u4fbf\u8ba1\u7b97\u5e94\u7f34\u7a0e\u989d\uff0c\u6700\u540e\u901a\u8fc7 IRS \u7f51\u7ad9\u63d0\u4ea4\u7eb3\u7a0e\u7533\u62a5\u5355\u3002<\/p>\n\n\n\n<p><strong>\u4e09\u3001\u7814\u7a76\u6848\u4f8b<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4f7f\u7528API Gatway \u4ee3\u7406\u96c6\u6210\u521b\u5efaAPI\u4ee3\u7406\u8c03\u7528\u90e8\u7f72\u5728EC2\u4e0aDemo\u00a0Server\u670d\u52a1\u3002<\/p>\n\n\n\n<p>\u6848\u4f8b\u6a21\u578b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76-1024x638.png\" alt=\"\" class=\"wp-image-11758\" width=\"515\" height=\"321\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76-1024x638.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76-300x187.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76-768x479.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76-830x517.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76-230x143.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76-350x218.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76-480x299.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-76.png 1438w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/figure><\/div>\n\n\n\n<p>\u5ba2\u6237\u7aef\u53d1\u9001HTTP Request \u5230API Gateway \u90e8\u7f72\u7684\u5bf9\u5916\u5f00\u653e\u7684API URL\u3002<\/p>\n\n\n\n<p>API Gateway\u901a\u8fc7\u65b9\u6cd5\u8bf7\u6c42\u548c\u96c6\u6210\u8bf7\u6c42\u5bf9HTTP Requst\u8fdb\u884c\u5904\u7406,\u7136\u540e\u5c06\u5904\u7406\u540e\u7684HTTP Request \u8f6c\u53d1\u5230\u90e8\u7f72\u5728EC2\u7684\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n\n\n\n<p>EC2\u5b9e\u4f8b\u4e0a\u7684\u670d\u52a1\u6536\u5230\u8bf7\u6c42\u540e\u63a5\u6536\u5904\u7406\u6570\u636e\u5e76\u5c06HTTP Response\u8fd4\u56de\u7ed9API Gateway\u3002<\/p>\n\n\n\n<p>API Gateway \u901a\u8fc7\u65b9\u6cd5\u54cd\u5e94\u548c\u96c6\u6210\u54cd\u5e94\u5bf9HTTP Response \u8fdb\u884c\u5904\u7406,\u5c06\u5904\u7406\u540e\u7684\u6570\u636e\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n\n\n\n<p><strong>\u56db\u3001\u914d\u7f6e\u8bf4\u660e<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u542f\u52a8EC2\u5b9e\u4f8b\u5e76\u914d\u7f6eEC2\u865a\u62df\u4e3b\u673a\u7684\u73af\u5883\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77-1024x376.png\" alt=\"\" class=\"wp-image-11759\" width=\"481\" height=\"176\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77-1024x376.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77-300x110.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77-768x282.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77-830x305.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77-230x84.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77-350x129.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77-480x176.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-77.png 1040w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><\/figure><\/div>\n\n\n\n<p>\u5728EC2&nbsp;\u63a7\u5236\u53f0\u9009\u62e9\u521b\u5efa\u5b9e\u4f8b,\u6309\u7167\u56fe\u793a\u6b65\u9aa4\u914d\u7f6eEC2&nbsp;\u5b9e\u4f8b\u3002<\/p>\n\n\n\n<p>\u914d\u7f6e\u5b8c\u6210\u5e76\u6210\u529f\u542f\u52a8\u540e\u4f7f\u7528SSH\u5de5\u5177\u8fdc\u7a0b\u8fde\u63a5 EC2\u00a0\u5b9e\u4f8b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78-1024x480.png\" alt=\"\" class=\"wp-image-11760\" width=\"538\" height=\"251\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78-1024x480.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78-300x141.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78-768x360.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78-830x389.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78-230x108.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78-350x164.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78-480x225.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-78.png 1442w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fde\u63a5\u6210\u529f\u540e\u5c31\u53ef\u4ee5\u50cf\u4f7f\u7528\u672c\u5730Linux\u670d\u52a1\u5668\u4e00\u6837\u914d\u7f6eLinux\u73af\u5883\u5e76\u542f\u52a8\u63d0\u4f9bRestFul&nbsp;API \u7684\u670d\u52a1\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<p>\u5728API\u00a0Gateway\u63a7\u5236\u53f0\u521b\u5efa\u4e00\u4e2a\u65b0\u7684API\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79-1024x404.png\" alt=\"\" class=\"wp-image-11761\" width=\"574\" height=\"226\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79-1024x404.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79-300x118.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79-768x303.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79-830x328.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79-230x91.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79-350x138.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79-480x189.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-79.png 1444w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/figure><\/div>\n\n\n\n<p>\u521b\u5efa\u597d\u4e00\u4e2a\u65b0\u7684API\u540e\u53ef\u4ee5\u770b\u5230API\u7684\u8d44\u6e90\u6811\u9875\u9762<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80-1024x428.png\" alt=\"\" class=\"wp-image-11762\" width=\"575\" height=\"240\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80-1024x428.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80-300x125.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80-768x321.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80-830x347.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80-230x96.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80-350x146.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80-480x200.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-80.png 1432w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/figure><\/div>\n\n\n\n<p>\u5728\u64cd\u4f5c\u83dc\u5355\u9009\u62e9\u521b\u5efa\u8d44\u6e90\u6765\u521b\u5efa\u4e00\u4e2aAPI\u8d44\u6e90,\u521b\u5efa\u65b9\u6cd5\u662f\u4e3a \/ \u8d44\u6e90\u76ee\u5f55\u521b\u5efa\u4e00\u4e2a\u8bbf\u95ee\u7684\u65b9\u6cd5\u3002\u9009\u62e9\u521b\u5efa\u8d44\u6e90\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81-1024x431.png\" alt=\"\" class=\"wp-image-11763\" width=\"553\" height=\"232\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81-1024x431.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81-300x126.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81-768x323.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81-830x349.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81-230x97.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81-350x147.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81-480x202.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-81.png 1422w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/figure><\/div>\n\n\n\n<p>\u7ec8\u7aef\u8282\u70b9URL\u00a0\u5199\u5165\u90e8\u7f72\u5728EC2\u865a\u62df\u4e3b\u673a\u7684\u670d\u52a1\u7684API\u00a0URL.\u70b9\u51fb\u4fdd\u5b58\u5373\u53ef\u521b\u5efa\u597d\u8bbf\u95ee\u4ee3\u7406\u8d44\u6e90\u7684\u4e00\u4e2aAPI\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82-1024x515.png\" alt=\"\" class=\"wp-image-11764\" width=\"512\" height=\"257\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82-1024x515.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82-300x151.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82-768x387.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82-830x418.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82-230x116.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82-350x176.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82-480x242.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-82.png 1466w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure><\/div>\n\n\n\n<p>\u90e8\u7f72\u5df2\u521b\u5efa\u597d\u7684API\u4f7fAPI\u53ef\u7528<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83-1024x432.png\" alt=\"\" class=\"wp-image-11765\" width=\"514\" height=\"217\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83-1024x432.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83-300x126.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83-768x324.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83-830x350.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83-230x97.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83-350x148.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83-480x202.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/08\/\u56fe\u7247-83.png 1442w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/figure><\/div>\n\n\n\n<p><strong>\u4e94\u3001\u603b\u7ed3<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>\u4f18\u52bf<\/strong><\/p>\n\n\n\n<p>API Gateway \u53ef\u4ee5\u5e2e\u52a9\u60a8\u63d0\u4f9b\u53ef\u9760\u3001\u5b89\u5168\u5e76\u53ef\u4ee5\u6269\u5c55\u7684\u79fb\u52a8\u548c Web \u5e94\u7528\u7a0b\u5e8f\u540e\u7aef\u3002API Gateway \u8ba9\u60a8\u80fd\u591f\u5c06\u79fb\u52a8\u548c Web \u5e94\u7528\u7a0b\u5e8f\u5b89\u5168\u5730\u8fde\u63a5\u5230\u6258\u7ba1\u5728 AWS Lambda \u4e0a\u7684\u4e1a\u52a1\u903b\u8f91\u3001\u6258\u7ba1\u5728 Amazon EC2 \u4e0a\u7684 API \u6216\u8005\u6258\u7ba1\u5728 AWS \u5185\u90e8\u6216\u5916\u90e8\u7684\u5176\u4ed6\u53ef\u516c\u5f00\u5bfb\u5740\u7684 Web \u670d\u52a1\u3002\u501f\u52a9 API Gateway\uff0c\u60a8\u53ef\u4ee5\u9488\u5bf9\u540e\u7aef\u670d\u52a1\u521b\u5efa\u548c\u8fd0\u884c API\u3002\u4f8b\u5982\uff0c\u60a8\u4e0d\u9700\u8981\u5f00\u53d1\u548c\u7ef4\u62a4\u57fa\u7840\u8bbe\u65bd\u6765\u5904\u7406\u6388\u6743\u548c\u8bbf\u95ee\u63a7\u5236\u3001\u6d41\u91cf\u7ba1\u7406\u3001\u76d1\u63a7\u548c\u5206\u6790\u3001\u7248\u672c\u7ba1\u7406\u548c\u5f00\u53d1\u5de5\u5177\u5305 (SDK) \u7684\u751f\u6210\u5de5\u4f5c\u3002<\/p>\n\n\n\n<p>API Gateway \u4e13\u4e3a Web \u548c\u79fb\u52a8\u5f00\u53d1\u4eba\u5458\u800c\u8bbe\u8ba1\uff0c\u53ef\u4ee5\u4e3a\u5185\u90e8\u6784\u5efa\u6216\u7b2c\u4e09\u65b9\u751f\u6001\u7cfb\u7edf\u5408\u4f5c\u4f19\u4f34\u6784\u5efa\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3001Web \u5e94\u7528\u7a0b\u5e8f\u548c\u670d\u52a1\u5668\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u5b89\u5168\u53ef\u9760\u7684\u540e\u7aef API \u8bbf\u95ee\u3002API \u80cc\u540e\u7684\u4e1a\u52a1\u903b\u8f91\u53ef\u4ee5\u7531 API Gateway \u4ee3\u7406\u8c03\u7528\u7684\u53ef\u516c\u5f00\u8bbf\u95ee\u7684\u7ec8\u7aef\u8282\u70b9\u63d0\u4f9b\uff0c\u4e5f\u53ef\u4ee5\u5b8c\u5168\u4f5c\u4e3a\u4e00\u4e2a Lambda \u51fd\u6570\u6765\u8fd0\u884c\u3002<\/p>\n\n\n\n<p><strong>\u52a3\u52bf<\/strong><\/p>\n\n\n\n<p>API \u7f51\u5173\u4e5f\u5b58\u5728\u4e00\u4e9b\u7f3a\u70b9\uff0c\u5b83\u662f\u53e6\u4e00\u4e2a\u9ad8\u5ea6\u53ef\u7528\u7684\u7ec4\u4ef6\uff0c\u9700\u8981\u5f00\u53d1\u3001\u90e8\u7f72\u548c\u7ba1\u7406\u3002\u53e6\u5916\uff0c\u8fd8\u6709\u4e00\u4e2a\u98ce\u9669\u662f API \u7f51\u5173\u53ef\u80fd\u4f1a\u6210\u4e3a\u5f00\u53d1\u74f6\u9888\u3002\u5f00\u53d1\u4eba\u5458\u5fc5\u987b\u66f4\u65b0 API \u7f51\u5173\u4ee5\u66b4\u9732\u6bcf\u4e2a\u5fae\u670d\u52a1\u7684\u7aef\u70b9\u3002<\/p>\n\n\n\n<p>\u91cd\u8981\u7684\u662f\u66f4\u65b0 API \u7f51\u5173\u7684\u8fc7\u7a0b\u5e94\u5c3d\u53ef\u80fd\u5730\u653e\u7f13\u4e00\u4e9b\u3002\u5426\u5219\uff0c\u5f00\u53d1\u4eba\u5458\u5c06\u88ab\u8feb\u6392\u961f\u7b49\u5f85\u7f51\u5173\u66f4\u65b0\u3002\u5c3d\u7ba1 API \u7f51\u5173\u5b58\u5728\u8fd9\u4e9b\u7f3a\u70b9\uff0c\u4f46\u5bf9\u4e8e\u5927\u591a\u6570\u7684\u771f\u5b9e\u5e94\u7528\u6765\u8bf4\uff0c\u4f7f\u7528 API \u662f\u5408\u7406\u7684\u3002<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6982\u8ff0 Amazon API Gateway \u662f\u4e00\u9879 AWS \u670d\u52a1\uff0c\u8ba9\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u521b\u5efa\u3001\u53d1\u5e03\u3001\u7ef4\u62a4\u3001\u76d1\u63a7\u548c\u4fdd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,9],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/11756"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11756"}],"version-history":[{"count":1,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/11756\/revisions"}],"predecessor-version":[{"id":11766,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/11756\/revisions\/11766"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}