{"id":22944,"date":"2024-11-21T08:22:21","date_gmt":"2024-11-21T00:22:21","guid":{"rendered":"https:\/\/fwq.ai\/blog\/22944\/"},"modified":"2024-11-21T08:22:21","modified_gmt":"2024-11-21T00:22:21","slug":"thinkphp5%e4%b8%ad%e6%80%8e%e4%b9%88%e8%bf%9b%e8%a1%8c%e9%94%99%e8%af%af%e5%a4%84%e7%90%86%e7%9a%84%e7%9b%b8%e5%85%b3%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/22944\/","title":{"rendered":"thinkphp5\u4e2d\u600e\u4e48\u8fdb\u884c\u9519\u8bef\u5904\u7406\u7684\u76f8\u5173\u4fe1\u606f"},"content":{"rendered":"<\/p>\n<p><strong>\u9519\u8bef\u5904\u7406\u673a\u5236<\/strong><\/p>\n<p>ThinkPHP5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5b8c\u6574\u7684\u9519\u8bef\u5904\u7406\u673a\u5236\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8be5\u673a\u5236\u65b9\u4fbf\u5730\u5904\u7406\u5e38\u89c4\u9519\u8bef\u548c\u7cfb\u7edf\u9519\u8bef\u4fe1\u606f\u3002\u6bd4\u5982\u8bf4\uff0c\u9519\u8bef\u4fe1\u606f\u5305\u62ec\u7f51\u7ad9\u5e94\u7528\u7a0b\u5e8f\u5728\u8fd0\u884c\u65f6\u51fa\u73b0\u7684404\u9875\u9762\u672a\u627e\u5230\u9519\u8bef\u3001500\u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef\u548c503\u670d\u52a1\u6682\u65f6\u4e0d\u53ef\u7528\u7b49\u3002HTTP\u72b6\u6001\u7801\u53ef\u7528\u4e8e\u6807\u8bc6\u9519\u8bef\u4fe1\u606f\uff0c\u5e76\u6839\u636e\u7279\u5b9a\u7684\u4e1a\u52a1\u9700\u6c42\u5bf9\u5176\u8fdb\u884c\u7ec6\u81f4\u5316\u7ba1\u7406\u3002<\/p>\n<p>\u66f4\u8fdb\u4e00\u6b65\u5730\u8bf4\uff0cThinkPHP5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u9a8c\u8bc1\u7801\u529f\u80fd\uff0c\u53ef\u4ee5\u907f\u514d\u6076\u610f\u5ba2\u6237\u7aef\u5bf9\u6211\u4eec\u7684\u7f51\u7ad9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u653b\u51fb\uff0c\u8ba9\u5e94\u7528\u7a0b\u5e8f\u66f4\u52a0\u5b89\u5168\u53ef\u9760\u3002\u5b83\u8fd8\u914d\u5907\u4e86\u4e00\u4e2a\u6f0f\u6d1e\u7ba1\u7406\u5de5\u5177\uff0c\u80fd\u65b9\u4fbf\u5730\u5904\u7406\u5728\u7814\u53d1\u548c\u6d4b\u8bd5\u4e2d\u53d1\u73b0\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<p><strong>\u521b\u5efa\u9519\u8bef\u9875\u9762<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u6765\u5448\u73b0\u66f4\u52a0\u53cb\u597d\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u5728ThinkPHP5\u6846\u67b6\u4e2d\u3002\u6211\u4eec\u53ea\u9700\u8981\u5728\u81ea\u5b9a\u4e49\u7684\u9519\u8bef\u9875\u9762\u4e2d\u6dfb\u52a0\u5fc5\u8981\u7684\u5904\u7406\u4ee3\u7801\u5373\u53ef\u3002\u4e0b\u9762\u662f\u5982\u4f55\u521b\u5efa\u81ea\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u7684\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\n<p>\u5728\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u6839\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u547d\u540d\u4e3a\u201cexception\u201d\u7684\u6587\u4ef6\u5939\uff1b<\/p>\n<\/li>\n<li>\n<p>\u5728\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u4e00\u4e2a\u7c7b\u547d\u540d\u4e3a\u201cHandle\u201d\uff1b<\/p>\n<\/li>\n<li>\n<p>\u5904\u7406\u9519\u8bef\u4fe1\u606f\u548c\u5f02\u5e38\u4fe1\u606f\u4ee3\u7801\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u7b2c\u4e00\u6b65\u548c\u7b2c\u4e8c\u6b65\u5df2\u7ecf\u5b8c\u6210\u4e86\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u5230\u4e86\u7b2c\u4e09\u6b65\uff0c\u5904\u7406\u9519\u8bef\u4fe1\u606f\u548c\u5f02\u5e38\u4fe1\u606f\u3002<\/p>\n<p><strong>\u5904\u7406\u9519\u8bef\u4fe1\u606f\u548c\u5f02\u5e38\u4fe1\u606f<\/strong><\/p>\n<p>\u5728ThinkPHP5\u6846\u67b6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u57fa\u7c7b\u201cthinkexceptionHandle\u201d\u4e2d\u7684\u201crender\u201d\u65b9\u6cd5\u5904\u7406\u5f02\u5e38\u4fe1\u606f\u3002\u53ef\u4ee5\u4f7f\u7528\u8be5\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef\u9875\u9762\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>use&nbsp;thinkexceptionHttpException;\nuse&nbsp;thinkexceptionValidateException;\nuse&nbsp;thinkResponse;\n\nclass&nbsp;Handle&nbsp;extends&nbsp;thinkexceptionHandle\n{\n&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;render(Exception&nbsp;$e):&nbsp;Response\n&nbsp;&nbsp;&nbsp;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($e&nbsp;instanceof&nbsp;HttpException&nbsp;&amp;amp;&amp;amp;&nbsp;$this-&amp;gt;isAjax())&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;[\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'msg'&nbsp;&nbsp;&nbsp;=&amp;gt;&nbsp;$e-&amp;gt;getMessage(),\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'code'&nbsp;&nbsp;=&amp;gt;&nbsp;$e-&amp;gt;getStatusCode(),\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;];\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;json($data,&nbsp;$e-&amp;gt;getStatusCode());\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($e&nbsp;instanceof&nbsp;ValidateException)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;json($e-&amp;gt;getError(),&nbsp;422);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u5176\u4ed6\u9519\u8bef\u4ea4\u7ed9\u7cfb\u7edf\u5904\u7406\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;parent::render($e);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a\u201crender\u201d\u7684\u65b9\u6cd5\uff0c\u5176\u4f5c\u7528\u662f\u6839\u636e\u4f20\u9012\u7684\u5f02\u5e38\u4fe1\u606f\u53c2\u6570\u6765\u5904\u7406\u8fd9\u4e9b\u5f02\u5e38\u4fe1\u606f\u3002\u8fd4\u56de JSON \u54cd\u5e94\u7684\u6761\u4ef6\u662f\u4f20\u9012\u7684\u5f02\u5e38\u5c5e\u4e8e HttpException \u548c\u9a8c\u8bc1\u5f02\u5e38\u3002\u5982\u679c\u4e0d\u662f\uff0c\u5219\u5c06\u5f02\u5e38\u4f20\u9012\u7ed9\u524d\u7aef\u54cd\u5e94\uff0c\u5e76\u4f7f\u7528\u7236\u7c7b\u9ed8\u8ba4\u8fd4\u56de\u9875\u9762\u3002<\/p>\n<p>\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u8ba9\u60a8\u53ef\u4ee5\u5feb\u901f\u521b\u5efa\u548c\u5904\u7406\u81ea\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u3002\u8fd9\u6b63\u662f\u4e3a\u4ec0\u4e48\u6211\u4eec\u8ba4\u4e3aThinkPHP5\u662f\u4e00\u4e2a\u6700\u597d\u7684PHP\u6846\u67b6\u4e4b\u4e00\uff0c\u5e76\u4e14\u4e3a\u7a0b\u5e8f\u5458\u63d0\u4f9b\u4e86\u5f3a\u5927\u800c\u8f7b\u677e\u7684\u5f00\u53d1\u5de5\u5177\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f5\u4e2d\u600e\u4e48\u8fdb\u884c\u9519\u8bef\u5904\u7406\u7684\u76f8\u5173\u4fe1\u606f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9519\u8bef\u5904\u7406\u673a\u5236 ThinkPHP5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5b8c\u6574\u7684\u9519\u8bef\u5904\u7406\u673a\u5236\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8be5\u673a\u5236\u65b9\u4fbf\u5730\u5904\u7406\u5e38\u89c4\u9519\u8bef\u548c\u7cfb\u7edf\u9519\u8bef\u4fe1\u606f\u3002\u6bd4\u5982\u8bf4\uff0c\u9519\u8bef\u4fe1\u606f\u5305\u62ec\u7f51\u7ad9\u5e94\u7528\u7a0b\u5e8f\u5728\u8fd0\u884c\u65f6\u51fa\u73b0\u7684404\u9875\u9762\u672a\u627e\u5230\u9519\u8bef\u3001500\u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef\u548c503\u670d\u52a1\u6682\u65f6\u4e0d\u53ef\u7528\u7b49\u3002HTTP\u72b6\u6001\u7801\u53ef\u7528\u4e8e\u6807\u8bc6\u9519\u8bef\u4fe1\u606f\uff0c\u5e76\u6839\u636e\u7279\u5b9a\u7684\u4e1a\u52a1\u9700\u6c42\u5bf9\u5176\u8fdb\u884c\u7ec6\u81f4\u5316\u7ba1\u7406\u3002 \u66f4\u8fdb\u4e00\u6b65\u5730\u8bf4\uff0cThinkPHP5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u9a8c\u8bc1\u7801\u529f\u80fd\uff0c\u53ef\u4ee5\u907f\u514d\u6076\u610f\u5ba2\u6237\u7aef\u5bf9\u6211\u4eec\u7684\u7f51\u7ad9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u653b\u51fb\uff0c\u8ba9\u5e94\u7528\u7a0b\u5e8f\u66f4\u52a0\u5b89\u5168\u53ef\u9760\u3002\u5b83\u8fd8\u914d\u5907\u4e86\u4e00\u4e2a\u6f0f\u6d1e\u7ba1\u7406\u5de5\u5177\uff0c\u80fd\u65b9\u4fbf\u5730\u5904\u7406\u5728\u7814\u53d1\u548c\u6d4b\u8bd5\u4e2d\u53d1\u73b0\u7684\u9519\u8bef\u4fe1\u606f\u3002 \u521b\u5efa\u9519\u8bef\u9875\u9762 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u6765\u5448\u73b0\u66f4\u52a0\u53cb\u597d\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u5728ThinkPHP5\u6846\u67b6\u4e2d\u3002\u6211\u4eec\u53ea\u9700\u8981\u5728\u81ea\u5b9a\u4e49\u7684\u9519\u8bef\u9875\u9762\u4e2d\u6dfb\u52a0\u5fc5\u8981\u7684\u5904\u7406\u4ee3\u7801\u5373\u53ef\u3002\u4e0b\u9762\u662f\u5982\u4f55\u521b\u5efa\u81ea\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u7684\u6b65\u9aa4\uff1a \u5728\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u6839\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u547d\u540d\u4e3a\u201cexception\u201d\u7684\u6587\u4ef6\u5939\uff1b \u5728\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u4e00\u4e2a\u7c7b\u547d\u540d\u4e3a\u201cHandle\u201d\uff1b \u5904\u7406\u9519\u8bef\u4fe1\u606f\u548c\u5f02\u5e38\u4fe1\u606f\u4ee3\u7801\u3002 \u7b2c\u4e00\u6b65\u548c\u7b2c\u4e8c\u6b65\u5df2\u7ecf\u5b8c\u6210\u4e86\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u5230\u4e86\u7b2c\u4e09\u6b65\uff0c\u5904\u7406\u9519\u8bef\u4fe1\u606f\u548c\u5f02\u5e38\u4fe1\u606f\u3002 \u5904\u7406\u9519\u8bef\u4fe1\u606f\u548c\u5f02\u5e38\u4fe1\u606f \u5728ThinkPHP5\u6846\u67b6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u57fa\u7c7b\u201cthinkexceptionHandle\u201d\u4e2d\u7684\u201crender\u201d\u65b9\u6cd5\u5904\u7406\u5f02\u5e38\u4fe1\u606f\u3002\u53ef\u4ee5\u4f7f\u7528\u8be5\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef\u9875\u9762\uff0c\u4f8b\u5982\uff1a use&nbsp;thinkexceptionHttpException; use&nbsp;thinkexceptionValidateException; use&nbsp;thinkResponse; class&nbsp;Handle&nbsp;extends&nbsp;thinkexceptionHandle { &nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;render(Exception&nbsp;$e):&nbsp;Response &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($e&nbsp;instanceof&nbsp;HttpException&nbsp;&amp;amp;&amp;amp;&nbsp;$this-&amp;gt;isAjax())&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;[ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8216;msg&#8217;&nbsp;&nbsp;&nbsp;=&amp;gt;&nbsp;$e-&amp;gt;getMessage(), &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8216;code&#8217;&nbsp;&nbsp;=&amp;gt;&nbsp;$e-&amp;gt;getStatusCode(), &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;json($data,&nbsp;$e-&amp;gt;getStatusCode()); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($e&nbsp;instanceof&nbsp;ValidateException)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;json($e-&amp;gt;getError(),&nbsp;422); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;\u5176\u4ed6\u9519\u8bef\u4ea4\u7ed9\u7cfb\u7edf\u5904\u7406 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;parent::render($e); &nbsp;&nbsp;&nbsp;&nbsp;} } \u767b\u5f55\u540e\u590d\u5236 \u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a\u201crender\u201d\u7684\u65b9\u6cd5\uff0c\u5176\u4f5c\u7528\u662f\u6839\u636e\u4f20\u9012\u7684\u5f02\u5e38\u4fe1\u606f\u53c2\u6570\u6765\u5904\u7406\u8fd9\u4e9b\u5f02\u5e38\u4fe1\u606f\u3002\u8fd4\u56de JSON \u54cd\u5e94\u7684\u6761\u4ef6\u662f\u4f20\u9012\u7684\u5f02\u5e38\u5c5e\u4e8e HttpException \u548c\u9a8c\u8bc1\u5f02\u5e38\u3002\u5982\u679c\u4e0d\u662f\uff0c\u5219\u5c06\u5f02\u5e38\u4f20\u9012\u7ed9\u524d\u7aef\u54cd\u5e94\uff0c\u5e76\u4f7f\u7528\u7236\u7c7b\u9ed8\u8ba4\u8fd4\u56de\u9875\u9762\u3002 \u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u8ba9\u60a8\u53ef\u4ee5\u5feb\u901f\u521b\u5efa\u548c\u5904\u7406\u81ea\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u3002\u8fd9\u6b63\u662f\u4e3a\u4ec0\u4e48\u6211\u4eec\u8ba4\u4e3aThinkPHP5\u662f\u4e00\u4e2a\u6700\u597d\u7684PHP\u6846\u67b6\u4e4b\u4e00\uff0c\u5e76\u4e14\u4e3a\u7a0b\u5e8f\u5458\u63d0\u4f9b\u4e86\u5f3a\u5927\u800c\u8f7b\u677e\u7684\u5f00\u53d1\u5de5\u5177\u3002 \u4ee5\u4e0a\u5c31\u662f5\u4e2d\u600e\u4e48\u8fdb\u884c\u9519\u8bef\u5904\u7406\u7684\u76f8\u5173\u4fe1\u606f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-22944","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=22944"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22944\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=22944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=22944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=22944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}