{"id":1095,"date":"2024-03-16T18:31:00","date_gmt":"2024-03-16T09:31:00","guid":{"rendered":"https:\/\/shinke1987.net\/?p=1095"},"modified":"2024-03-16T18:32:19","modified_gmt":"2024-03-16T09:32:19","slug":"laravel%e3%81%a7%e3%81%aeapi%e3%81%ae%e6%8c%99%e5%8b%95%e3%82%92%e7%a2%ba%e8%aa%8d%ef%bc%88%e3%83%88%e3%83%bc%e3%82%af%e3%83%b3%e8%aa%8d%e8%a8%bc%e4%bb%a5%e5%a4%96%ef%bc%89","status":"publish","type":"post","link":"https:\/\/shinke1987.net\/?p=1095","title":{"rendered":"Laravel\u3067\u306eAPI\u306e\u6319\u52d5\u3092\u78ba\u8a8d\uff08\u30c8\u30fc\u30af\u30f3\u8a8d\u8a3c\u4ee5\u5916\uff09"},"content":{"rendered":"\n<h2 id=\"toc0\" class=\"wp-block-heading\">\u74b0\u5883<\/h2>\n\n\n\n<p>Laravel10\u306eLaravel Sail<\/p>\n\n\n\n<h2 id=\"toc1\" class=\"wp-block-heading\">routes\/web.php\u3067\u8a2d\u5b9a\u3057\u305f\u3001auth\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u9069\u7528\u3057\u3066\u3044\u306a\u3044API<\/h2>\n\n\n\n<h3 id=\"toc2\" class=\"wp-block-heading\">routes\/web.php<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nRoute::post(&#039;\/ping&#039;, function() {\n    return response()-&gt;json(&#x5B;&#039;message&#039; =&gt; &#039;pong&#039;]);\n});\n<\/pre><\/div>\n\n\n<h3 id=\"toc3\" class=\"wp-block-heading\">HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u306b\u30c8\u30fc\u30af\u30f3\u3092\u542b\u3081\u306a\u304b\u3063\u305f\u5834\u5408<\/h3>\n\n\n\n<p><a href=\"http:\/\/localhost\/\">http:\/\/localhost<\/a>&nbsp;\u3078\u30a2\u30af\u30bb\u30b9\u3057Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u304b\u3089\u6b21\u306eJS\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nresponsePing = await fetch(&#039;http:\/\/localhost\/ping&#039;, { method: &#039;POST&#039; });\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9419\u304c\u8fd4\u3063\u3066\u304d\u3066\u3001CSRF\u95a2\u9023\u306e\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002<\/p>\n\n\n\n<h3 id=\"toc4\" class=\"wp-block-heading\">HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u306bX-XSRF-TOKEN \u3092\u542b\u3081\u305f\u5834\u5408<\/h3>\n\n\n\n<p><a href=\"http:\/\/localhost\/\">http:\/\/localhost<\/a>&nbsp;\u3078\u30a2\u30af\u30bb\u30b9\u3057Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u304b\u3089\u6b21\u306eJS\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ XSRF-TOKEN\u306e\u5024\u3092\u53d6\u5f97\u3002\nvar re = new RegExp(&#039;^XSRF-TOKEN=&#039;);\nvar xsrfToken = document.cookie.replace(re, &#039;&#039;);\nxsrfToken = decodeURIComponent(xsrfToken);\n\n\/\/ HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d8\u30c3\u30c0\u306bX-XSRF-TOKEN\u3092\u8a2d\u5b9a\u3002\nvar headers = new Headers();\nheaders.set(&#039;X-XSRF-TOKEN&#039;, xsrfToken);\n\n\/\/ fetch\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u307e\u3068\u3081\u3002\nvar paramsPing = {\n    method: &#039;POST&#039;,\n    headers\n};\n\nvar responsePing = await fetch(&#039;http:\/\/localhost\/ping&#039;, paramsPing);\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001{&#8220;message&#8221;: &#8220;pong&#8221;} \u3068\u3044\u3046JSON\u304c\u8fd4\u3063\u3066\u304f\u308b\u3002<\/p>\n\n\n\n<h3 id=\"toc5\" class=\"wp-block-heading\">HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u306bX-CSRF-TOKEN \u3092\u542b\u3081\u305f\u5834\u5408<\/h3>\n\n\n\n<p>HTML\u306e\u30d8\u30c3\u30c0\u5185\u306bcsrf-token\u306e\u5024\u3092\u4fdd\u6301\u3059\u308bmeta\u30bf\u30b0\u304c\u3042\u308b\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001<br>Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u304b\u3089\u6b21\u306eJS\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ CSRF-TOKEN\u306e\u5024\u3092\u53d6\u5f97\u3002\nvar csrfToken = document.head.querySelector(&#039;&#x5B;name=&quot;csrf-token&quot;]&#039;).content;\n\n\/\/ HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d8\u30c3\u30c0\u306bX-CSRF-TOKEN\u3092\u8a2d\u5b9a\u3002\nvar headers = new Headers();\nheaders.set(&#039;X-CSRF-TOKEN&#039;, csrfToken);\n\n\/\/ fetch\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u307e\u3068\u3081\u3002\nvar paramsPing = {\n    method: &#039;POST&#039;,\n    headers\n};\n\nvar responsePing = await fetch(&#039;http:\/\/localhost\/ping&#039;, paramsPing);\nvar resultJson = await responsePing.json();\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001{&#8220;message&#8221;: &#8220;pong&#8221;} \u3068\u3044\u3046JSON\u304c\u8fd4\u3063\u3066\u304f\u308b\u3002<\/p>\n\n\n\n<h2 id=\"toc6\" class=\"wp-block-heading\">routes\/web.php \u3067\u8a2d\u5b9a\u3057\u305f\u3001auth\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u9069\u7528\u3057\u305fAPI<\/h2>\n\n\n\n<h3 id=\"toc7\" class=\"wp-block-heading\">routes\/web.php<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nRoute::middleware(&#039;auth&#039;)-&gt;post(&#039;\/ping&#039;, function() {\n    return response()-&gt;json(&#x5B;&#039;message&#039; =&gt; &#039;pong&#039;]);\n});\n<\/pre><\/div>\n\n\n<h3 id=\"toc8\" class=\"wp-block-heading\">\u30d5\u30ed\u30f3\u30c8\u30fb\u753b\u9762\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u306b\u30c8\u30fc\u30af\u30f3\u3092\u542b\u3081\u306a\u304b\u3063\u305f\u5834\u5408<\/h3>\n\n\n\n<p>Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u304b\u3089\u6b21\u306eJS\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nresponsePing = await fetch(&#039;http:\/\/localhost\/ping&#039;, { method: &#039;POST&#039; });\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9419\u304c\u8fd4\u3063\u3066\u304d\u3066\u3001CSRF\u95a2\u9023\u306e\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002<\/p>\n\n\n\n<h3 id=\"toc9\" class=\"wp-block-heading\">\u30d5\u30ed\u30f3\u30c8\u30fb\u753b\u9762\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u306bX-XSRF-TOKEN \u3092\u542b\u3081\u305f\u5834\u5408<\/h3>\n\n\n\n<p>Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u304b\u3089\u6b21\u306eJS\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ XSRF-TOKEN\u306e\u5024\u3092\u53d6\u5f97\u3002\nvar re = new RegExp(&#039;^XSRF-TOKEN=&#039;);\nvar xsrfToken = document.cookie.replace(re, &#039;&#039;);\nxsrfToken = decodeURIComponent(xsrfToken);\n\n\/\/ HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d8\u30c3\u30c0\u306bX-XSRF-TOKEN\u3092\u8a2d\u5b9a\u3002\nvar headers = new Headers();\nheaders.set(&#039;X-XSRF-TOKEN&#039;, xsrfToken);\n\n\/\/ fetch\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u307e\u3068\u3081\u3002\nvar paramsPing = {\n    method: &#039;POST&#039;,\n    headers\n};\n\nvar responsePing = await fetch(&#039;http:\/\/localhost\/ping&#039;, paramsPing);\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001{&#8220;message&#8221;: &#8220;pong&#8221;} \u3068\u3044\u3046JSON\u304c\u8fd4\u3063\u3066\u304f\u308b\u3002<\/p>\n\n\n\n<h3 id=\"toc10\" class=\"wp-block-heading\">\u30d5\u30ed\u30f3\u30c8\u30fb\u753b\u9762\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u306bX-CSRF-TOKEN \u3092\u542b\u3081\u305f\u5834\u5408<\/h3>\n\n\n\n<p>HTML\u306e\u30d8\u30c3\u30c0\u5185\u306bcsrf-token\u306e\u5024\u3092\u4fdd\u6301\u3059\u308bmeta\u30bf\u30b0\u304c\u3042\u308b\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001<br>Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u304b\u3089\u6b21\u306eJS\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ CSRF-TOKEN\u306e\u5024\u3092\u53d6\u5f97\u3002\nvar csrfToken = document.head.querySelector(&#039;&#x5B;name=&quot;csrf-token&quot;]&#039;).content;\n\n\/\/ HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d8\u30c3\u30c0\u306bX-CSRF-TOKEN\u3092\u8a2d\u5b9a\u3002\nvar headers = new Headers();\nheaders.set(&#039;X-CSRF-TOKEN&#039;, csrfToken);\n\n\/\/ fetch\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u307e\u3068\u3081\u3002\nvar paramsPing = {\n    method: &#039;POST&#039;,\n    headers\n};\n\nvar responsePing = await fetch(&#039;http:\/\/localhost\/ping&#039;, paramsPing);\nvar resultJson = await responsePing.json();\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001{&#8220;message&#8221;: &#8220;pong&#8221;} \u3068\u3044\u3046JSON\u304c\u8fd4\u3063\u3066\u304f\u308b\u3002<\/p>\n\n\n\n<h3 id=\"toc11\" class=\"wp-block-heading\">\u975e\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3067\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u306bX-CSRF-TOKEN \u3092\u542b\u3081\u305f\u5834\u5408<\/h3>\n\n\n\n<p>HTML\u306e\u30d8\u30c3\u30c0\u5185\u306bcsrf-token\u306e\u5024\u3092\u4fdd\u6301\u3059\u308bmeta\u30bf\u30b0\u304c\u3042\u308b\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001<br>Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u304b\u3089\u6b21\u306eJS\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ CSRF-TOKEN\u306e\u5024\u3092\u53d6\u5f97\u3002\nvar csrfToken = document.head.querySelector(&#039;&#x5B;name=&quot;csrf-token&quot;]&#039;).content;\n\n\/\/ HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d8\u30c3\u30c0\u306bX-CSRF-TOKEN\u3092\u8a2d\u5b9a\u3002\nvar headers = new Headers();\nheaders.set(&#039;X-CSRF-TOKEN&#039;, csrfToken);\n\n\/\/ fetch\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u307e\u3068\u3081\u3002\nvar paramsPing = {\n    method: &#039;POST&#039;,\n    headers\n};\n\nvar responsePing = await fetch(&#039;http:\/\/localhost\/ping&#039;, paramsPing);\nvar resultJson = await responsePing.json();\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9302\u304c\u8fd4\u3063\u3066\u304d\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<h2 id=\"toc12\" class=\"wp-block-heading\">routes\/api.php \u3067\u8a2d\u5b9a\u3057\u305fAPI\uff08Sanctum\u306eSPA\u8a8d\u8a3c\uff09<\/h2>\n\n\n\n<h3 id=\"toc13\" class=\"wp-block-heading\">routes\/api.php<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ \u30ed\u30b0\u30a4\u30f3\u51e6\u7406\u3002\n\/\/ email=name1@aa.com\n\/\/ password=password\n\/\/ \u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3059\u308b\u3002\nRoute::post(&#039;\/login&#039;, function(Request $request) {\n    if (\\Illuminate\\Support\\Facades\\Auth::attempt($request-&gt;all())) {\n        return response()-&gt;json(&#x5B;&#039;result&#039; =&gt; &#039;correct&#039;]);\n    }\n\n    return response()-&gt;json(&#x5B;&#039;result&#039; =&gt; &#039;incorrect&#039;]);\n});\n\n\/\/ \u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u3067\u306a\u3044\u3068JSON\u3092\u53d6\u5f97\u3067\u304d\u306a\u3044\u3002\nRoute::middleware(&#039;auth:sanctum&#039;)-&gt;post(&#039;\/ping&#039;, function() {\n    return response()-&gt;json(&#x5B;&#039;message&#039; =&gt; &#039;pong&#039;]);\n});\n<\/pre><\/div>\n\n\n<h3 id=\"toc14\" class=\"wp-block-heading\">JS\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<p><a href=\"http:\/\/localhost\/\">http:\/\/localhost<\/a>&nbsp;\u3078\u30a2\u30af\u30bb\u30b9\u3057Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u304b\u3089\u6b21\u306eJS\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ CSRF\u4fdd\u8b77\u521d\u671f\u5316\u3002\nvar headers = new Headers();\nheaders.set(&#039;Accept&#039;, &#039;application\/json&#039;);\nheaders.set(&#039;Origin&#039;, &#039;http:\/\/localhost&#039;);\n\nvar paramsGet = {\n    method: &#039;GET&#039;,\n    headers\n};\n\nvar responseCsrf = await fetch(&#039;http:\/\/localhost\/sanctum\/csrf-cookie&#039;, paramsGet);\n\n\/\/ loginAPI\u3092\u30b3\u30fc\u30eb\u3002\n\/\/ \u53d6\u5f97\u3057\u305fXSRF-TOKEN\u3092HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u3078\u8ffd\u52a0\u3002\nvar re = new RegExp(&#039;^XSRF-TOKEN=&#039;);\nvar xsrfToken = document.cookie.replace(re, &#039;&#039;);\nxsrfToken = decodeURIComponent(xsrfToken);\n\nheaders.set(&#039;X-XSRF-TOKEN&#039;, xsrfToken);\n\n\/\/ \u30ed\u30b0\u30a4\u30f3\u7528\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8a2d\u5b9a\u3002\nvar formData = new FormData();\nformData.append(&#039;email&#039;, &#039;name1@aa.com&#039;);\nformData.append(&#039;password&#039;, &#039;password&#039;);\n\nvar paramsPostData = {\n    method: &#039;POST&#039;,\n    headers,\n    body: formData\n};\n\nvar responseLogin = await fetch(&#039;http:\/\/localhost\/api\/login&#039;, paramsPostData);\n\n\/\/ pingAPI\u3092\u30b3\u30fc\u30eb\nvar xsrfToken = document.cookie.replace(re, &#039;&#039;);\nxsrfToken = decodeURIComponent(xsrfToken);\n\nheaders.set(&#039;X-XSRF-TOKEN&#039;, xsrfToken);\n\nvar paramsPost = {\n    method: &#039;POST&#039;,\n    headers\n};\n\nvar responsePing = await fetch(&#039;http:\/\/localhost\/api\/ping&#039;, paramsPost);\nvar resultJson = await responsePing.json();\n<\/pre><\/div>\n\n\n<p>\u7d50\u679c\u3068\u3057\u3066\u3001{&#8220;message&#8221;: &#8220;pong&#8221;} \u3068\u3044\u3046JSON\u304c\u8fd4\u3063\u3066\u304f\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u74b0\u5883 Laravel10\u306eLaravel Sail routes\/web.php\u3067\u8a2d\u5b9a\u3057\u305f\u3001auth\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u9069\u7528\u3057\u3066\u3044\u306a\u3044API routes\/web.php HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u306b\u30c8\u30fc\u30af\u30f3\u3092\u542b\u3081\u306a\u304b\u3063\u305f\u5834\u5408  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[88,81],"class_list":["post-1095","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-laravel","tag-php"],"_links":{"self":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/1095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1095"}],"version-history":[{"count":3,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/1095\/revisions"}],"predecessor-version":[{"id":1098,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/1095\/revisions\/1098"}],"wp:attachment":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}