{"id":57420,"date":"2023-10-22T00:27:31","date_gmt":"2023-10-21T16:27:31","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=57420"},"modified":"2023-10-22T00:27:31","modified_gmt":"2023-10-21T16:27:31","slug":"rjkdysmsr","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/57420.html","title":{"rendered":"RJST\u63a5\u53e3\u5b9a\u4e49\uff1a\u4ec0\u4e48\u662fRJST\uff1f"},"content":{"rendered":"

  RJST\uff08RESTful JSON-API Standard\uff09\u662f\u4e00\u79cd\u57fa\u4e8eRESTful\u67b6\u6784\u7684JSON\u683c\u5f0fAPI\u89c4\u8303\uff0c\u65e8\u5728\u63d0\u4f9b\u4e00\u79cd\u7b80\u5355\u3001\u7edf\u4e00\u7684API\u89c4\u8303\uff0c\u4ee5\u4fbf\u5728\u4e0d\u540c\u7684\u7cfb\u7edf\u4e4b\u95f4\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n

RJST\u63a5\u53e3\u5b9a\u4e49\u7684\u4f18\u52bf<\/h2>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u3001\u4e00\u81f4\u7684API\u89c4\u8303\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u4e0d\u540c\u7cfb\u7edf\u7684\u6570\u636e\uff0c\u5e76\u5c06\u6570\u636e\u4ee5JSON\u683c\u5f0f\u8fdb\u884c\u4ea4\u4e92\u3002\u5b83\u7684\u4f18\u52bf\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n

  1. \u7edf\u4e00API\u89c4\u8303<\/h3>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u63d0\u4f9b\u4e86\u4e00\u79cd\u7edf\u4e00\u7684API\u89c4\u8303\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u4e0d\u540c\u7cfb\u7edf\u7684\u6570\u636e\uff0c\u4ece\u800c\u4f7f\u7cfb\u7edf\u4e4b\u95f4\u7684\u4ea4\u4e92\u66f4\u52a0\u987a\u7545\u3002<\/p>\n

  2. \u6570\u636e\u5b89\u5168\u6027<\/h3>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u4f7f\u7528\u4e86JSON\u683c\u5f0f\u7684\u6570\u636e\u4f20\u8f93\uff0c\u8fd9\u79cd\u6570\u636e\u683c\u5f0f\u6709\u8f83\u9ad8\u7684\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u6709\u6548\u9632\u6b62\u6570\u636e\u6cc4\u9732\u548c\u6076\u610f\u653b\u51fb\u3002<\/p>\n

  3. \u6613\u4e8e\u7406\u89e3<\/h3>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u4f7f\u7528\u4e86\u7b80\u5355\u6613\u61c2\u7684\u8bed\u6cd5\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u66f4\u5bb9\u6613\u7406\u89e3\u548c\u4f7f\u7528\u3002<\/p>\n

RJST\u63a5\u53e3\u5b9a\u4e49\u7684\u5e94\u7528<\/h2>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u53ef\u4ee5\u7528\u4e8e\u591a\u79cd\u5e94\u7528\u573a\u666f\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n

  1. \u6570\u636e\u4ea4\u6362<\/h3>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u53ef\u4ee5\u7528\u4e8e\u4e0d\u540c\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u6570\u636e\u4ea4\u6362\u7684\u6548\u7387\u548c\u5b89\u5168\u6027\u3002<\/p>\n

  2. \u6570\u636e\u5b58\u50a8<\/h3>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u5b58\u50a8\uff0c\u53ef\u4ee5\u6709\u6548\u964d\u4f4e\u7cfb\u7edf\u7684\u5b58\u50a8\u6210\u672c\u3002<\/p>\n

  3. \u6570\u636e\u5206\u6790<\/h3>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u5206\u6790\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u7cfb\u7edf\u7684\u5206\u6790\u6548\u7387\u548c\u51c6\u786e\u6027\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  RJST\u63a5\u53e3\u5b9a\u4e49\u662f\u4e00\u79cd\u57fa\u4e8eRESTful\u67b6\u6784\u7684JSON\u683c\u5f0fAPI\u89c4\u8303\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u4e0d\u540c\u7cfb\u7edf\u7684\u6570\u636e\uff0c\u5e76\u5c06\u6570\u636e\u4ee5JSON\u683c\u5f0f\u8fdb\u884c\u4ea4\u4e92\u3002<\/strong>\u5b83\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u3001\u4e00\u81f4\u7684API\u89c4\u8303\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u7cfb\u7edf\u7684\u6570\u636e\u4ea4\u6362\u6548\u7387\u548c\u5b89\u5168\u6027\uff0c\u8fd8\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u5b58\u50a8\u548c\u6570\u636e\u5206\u6790\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u8fd0\u884c\u6548\u7387\u548c\u51c6\u786e\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

RJST\uff08RESTfulJSON-APIStandard\uff09\u662f\u4e00\u79cd\u57fa\u4e8eRESTful\u67b6\u6784\u7684JSON\u683c\u5f0fAPI\u89c4\u8303\uff0c\u65e8\u5728\u63d0\u4f9b\u4e00\u79cd\u7b80\u5355\u3001\u7edf\u4e00\u7684API\u89c4\u8303\uff0c\u4ee5\u4fbf\u5728\u4e0d\u540c\u7684\u7cfb\u7edf\u4e4b<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-57420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/57420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=57420"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/57420\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=57420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=57420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=57420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}