{"id":10206,"date":"2022-10-20T12:04:39","date_gmt":"2022-10-20T04:04:39","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=10206"},"modified":"2022-10-20T12:05:07","modified_gmt":"2022-10-20T04:05:07","slug":"restfull-api","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2022\/10\/20\/restfull-api\/","title":{"rendered":"RESTFull API"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"470\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/10\/10.png\" alt=\"\" class=\"wp-image-10208\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/10\/10.png 660w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/10\/10-300x214.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2022\/10\/10-600x427.png 600w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">RESTFUL\u662fRepresentational State Transfer\u8868\u8ff0\u6027\u72b6\u6001\u8f6c\u79fb\u7684\u7f29\u5199\uff0c\u7528\u6765\u63cf\u8ff0\u5206\u5e03\u5f0f\u7cfb\u7edf\u67b6\u6784\u7684\u7edf\u4e00\u901a\u4fe1\u63a5\u53e3\uff0c\u5173\u4e8eRESTFUL\u7684\u51e0\u4e2a\u5b9a\u4e49\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u63d0\u4f9b\u5bb9\u6613\u7406\u89e3\u7684\u76ee\u5f55\u7ed3\u6784URL<\/li><li>\u8868\u73b0\u5f62\u5f0f\u4e3aJSON\u6216XML\u6765\u8868\u793a\u6570\u636e\u5bf9\u8c61\u548c\u5c5e\u6027<\/li><li>\u8fd4\u56de\u6d88\u606f\u4f7f\u7528\u660e\u786e\u7684HTTP\u65b9\u6cd5\u5b9e\u73b0\uff08GET,POST,PUT,DELETE)<\/li><li>\u65e0\u72b6\u6001\u4ea4\u4e92\u5b58\u50a8\uff0c\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u8bf7\u6c42<\/li><li>\u72b6\u6001\u4f9d\u8d56\u5e76\u9650\u5236\u53ef\u6269\u5c55<\/li><li>\u5ba2\u6237\u7aef\u4fdd\u6301\u4f1a\u8bdd<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4f20\u7edf\u7684http api\u4e2d\uff0c\u8d44\u6e90\u7684\u83b7\u53d6\u548c\u66f4\u65b0\u90fd\u53ef\u4ee5\u901a\u8fc7GET\u548cPOST\u6765\u5b9e\u73b0\uff0c\u4f1a\u663e\u5f97\u5f88\u6df7\u4e71\uff0crestful API\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u79cd\u8bbe\u8ba1\u98ce\u683c\uff0c\u5728\u8bbe\u8ba1API\u7684\u65f6\u5019\u9075\u5b88\u6b64\u98ce\u683c\uff0c\u7528\u4e0d\u540c\u7684HTTP\u8bf7\u6c42\u65b9\u6cd5\u5bf9\u8d44\u6e90\u8fdb\u884cCRUD(\u521b\u5efa\u3001\u8bfb\u53d6\u3001\u66f4\u65b0\u3001\u5220\u9664)\u7684\u64cd\u4f5c\uff0c\u5e94\u8be5\u4f7f\u7528\u5177\u4f53\u7684\u65b9\u6cd5\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5982\u679c\u8981\u521b\u5efa\u8d44\u6e90\uff0c\u5e94\u8be5\u4f7f\u7528POST\u65b9\u6cd5<\/li><li>\u5982\u679c\u8981\u66f4\u65b0\u8d44\u6e90\uff0c\u5e94\u8be5\u4f7f\u7528PUT\u65b9\u6cd5<\/li><li>\u5982\u679c\u8981\u83b7\u53d6\u8d44\u6e90\uff0c\u5e94\u8be5\u4f7f\u7528GET\u65b9\u6cd5<\/li><li>\u5982\u679c\u8981\u5220\u9664\u8d44\u6e90\uff0c\u5e94\u8be5\u4f7f\u7528DELETE\u65b9\u6cd5<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>RESTFUL\u662fRepresentational State Transfer\u8868\u8ff0\u6027\u72b6\u6001\u8f6c\u79fb\u7684\u7f29\u5199\uff0c\u7528\u6765\u63cf\u8ff0\u5206 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":10208,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-10206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-network"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/10206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=10206"}],"version-history":[{"count":2,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/10206\/revisions"}],"predecessor-version":[{"id":10209,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/10206\/revisions\/10209"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/10208"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=10206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=10206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=10206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}