{"id":1461,"date":"2021-04-13T14:33:16","date_gmt":"2021-04-13T05:33:16","guid":{"rendered":"https:\/\/tech.at-iroha.jp\/?p=1461"},"modified":"2022-08-09T19:14:28","modified_gmt":"2022-08-09T10:14:28","slug":"cakephp2-%e3%81%8b%e3%82%89-cakephp4-%e3%81%b8%e3%81%ae%e7%a7%bb%e8%a1%8c%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6-3","status":"publish","type":"post","link":"https:\/\/tech.at-iroha.jp\/?p=1461","title":{"rendered":"CakePHP2 \u304b\u3089 CakePHP4 \u3078\u306e\u79fb\u884c\u306b\u3064\u3044\u3066 (3)"},"content":{"rendered":"\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/tech.at-iroha.jp\/?p=1437\" target=\"_blank\">\u524d\u56de<\/a>\u3068<a rel=\"noreferrer noopener\" href=\"https:\/\/tech.at-iroha.jp\/?p=1290\" data-type=\"URL\" data-id=\"https:\/\/tech.at-iroha.jp\/?p=1290\" target=\"_blank\">\u524d\u3005\u56de<\/a>\u306f CakePHP2 \u304b\u3089 CakePHP4 \u306e\u79fb\u884c\u4f5c\u696d\u3068\u3057\u3066\u3001CakePHP2 \u5074\u306e\u30bd\u30fc\u30b9\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3068\u3001CakePHP4 \u306e\u4ed5\u69d8\u306b\u5408\u308f\u305b\u3066\u30bd\u30fc\u30b9\u306e\u4e00\u62ec\u5909\u63db\u3092\u884c\u3046\u30b3\u30f3\u30d0\u30fc\u30bf\u306e\u8003\u3048\u65b9\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u8a8d\u8a3c\u6a5f\u80fd\u306e\u79fb\u884c\u306b\u3064\u3044\u3066\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8a8d\u8a3c\u6a5f\u80fd\u306e\u8ffd\u52a0<\/h2>\n\n\n\n<p>CakePHP4 \u306e\u8a8d\u8a3c\u306b\u306f\u3001CakePHP2 \u3068\u540c\u69d8\u306b <a rel=\"noreferrer noopener\" href=\"https:\/\/book.cakephp.org\/4\/ja\/controllers\/components\/authentication.html\" target=\"_blank\">AuthComponent<\/a> \u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3068\u3001<a rel=\"noreferrer noopener\" href=\"https:\/\/book.cakephp.org\/authentication\/2\/ja\/index.html\" target=\"_blank\" data-type=\"URL\">Authentication<\/a> \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306e2\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u307e\u3067\u3068\u540c\u69d8\u3001AuthComponent \u3092\u4f7f\u7528\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001CakePHP4 \u3067\u306f\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u4eca\u5f8c Authentication \u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u4e88\u5b9a\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u3067\u4eca\u5f8c\u3082\u9577\u304f\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b Authentication \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3068\u3044\u305f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u624b\u9806\u3067\u8a8d\u8a3c\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>1. composer \u3092\u4f7f\u3063\u3066 Authentication \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br>\uff08\u4e8b\u524d\u306b <a href=\"https:\/\/getcomposer.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">composer<\/a> \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer require \"cakephp\/authentication:^2.0\"<\/code><\/pre>\n\n\n\n<p>2. src\\Application.php \u306b\u4ee5\u4e0b\u306e\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use Authentication\\AuthenticationService;\nuse Authentication\\AuthenticationServiceInterface;\nuse Authentication\\AuthenticationServiceProviderInterface;\nuse Authentication\\Identifier\\IdentifierInterface;\nuse Authentication\\Middleware\\AuthenticationMiddleware;\nuse Psr\\Http\\Message\\ServerRequestInterface;<\/code><\/pre>\n\n\n\n<p>3. src\\Application.php \u306e\u30af\u30e9\u30b9\u306e\u5ba3\u8a00\u3092\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u5909\u66f4\u524d\nclass Application extends BaseApplication\n\n\/\/ \u5909\u66f4\u5f8c\nclass Application extends BaseApplication implements AuthenticationServiceProviderInterface<\/code><\/pre>\n\n\n\n<p>4. src\\Application.php \u306b\u4ee5\u4e0b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public function middleware(MiddlewareQueue $middlewareQueue): MiddlewareQueue\n{\n    $middlewareQueue\n        -&gt;add(new RoutingMiddleware($this))\n        -&gt;add(new AuthenticationMiddleware($this));\n\n    return $middlewareQueue;\n}\n\npublic function getAuthenticationService(ServerRequestInterface $request): AuthenticationServiceInterface\n{\n    $service = new AuthenticationService();\n    $authenticationService = new AuthenticationService(&#91;\n        'unauthenticatedRedirect' =&gt; '\/users\/login',\n        'queryParam' =&gt; 'redirect',\n    ]);\n\n    $authenticationService-&gt;loadAuthenticator('Authentication.Session');\n\n    $fields = &#91;\n        IdentifierInterface::CREDENTIAL_USERNAME =&gt; 'username',\n        IdentifierInterface::CREDENTIAL_PASSWORD =&gt; 'password'\n    ];\n\n    $authenticationService-&gt;loadAuthenticator('Authentication.Form', &#91;\n        'fields' =&gt; $fields,\n        'loginUrl' =&gt; '\/users\/login',\n    ]);\n\n    return $authenticationService;\n}\n\n<\/code><\/pre>\n\n\n\n<p>5. src\\Controller\\AppController.php \u306e initialize \u30e1\u30bd\u30c3\u30c9\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$this-&gt;loadComponent('Authentication.Authentication');<\/code><\/pre>\n\n\n\n<p>6. \u7121\u9650\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30d7\u3092\u9632\u6b62\u3059\u308b\u305f\u3081\u306b\u3001src\\Controller\\UsersController.php \u3068 src\\Controller\\Admin\\UsersController.php beforeFilter \u306e\u30e1\u30bd\u30c3\u30c9\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$this-&gt;Authentication-&gt;addUnauthenticatedActions(&#91;'login']);<\/code><\/pre>\n\n\n\n<p>7. src\\Controller\\UsersController.php \u3068 src\\Controller\\Admin\\UsersController.\u306b\u4ee5\u4e0b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\uff08\u5909\u66f4\uff09\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public function login()\n{\n    $this-&gt;request-&gt;allowMethod(&#91;'get', 'post']);\n    $result = $this-&gt;Authentication-&gt;getResult();\n    \n    \/\/ \u8a8d\u8a3c\u304cOK\u306e\u5834\u5408\n    if($result-&gt;isValid())\n    {\n        \/\/ \u30ed\u30b0\u30a4\u30f3\u5f8c\u306e\u753b\u9762\u306b\u9077\u79fb\n        return $this-&gt;redirect(&#91;'controller' =&gt; 'Users', 'action' =&gt; 'index']);\n    }\n\n    \/\/ \u30e6\u30fc\u30b6\u30fc\u304c submit \u5f8c\u3001\u8a8d\u8a3c\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u3001\u30a8\u30e9\u30fc\u3092\u8868\u793a\u3057\u307e\u3059\n    if($this-&gt;request-&gt;is('post') &amp;&amp; !$result-&gt;isValid())\n    {\n        $this-&gt;Flash-&gt;error(__('\u30ed\u30b0\u30a4\u30f3ID\u3001\u3082\u3057\u304f\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093'));\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>\u3088\u308a\u8a73\u3057\u3044\u60c5\u5831\u306f\u4ee5\u4e0b\u306eURL\u306b\u3066\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<br>CakePHP Authentication 2.x Cookbook<br><a href=\"https:\/\/book.cakephp.org\/authentication\/2\/ja\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/book.cakephp.org\/authentication\/2\/ja\/index.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CakePHP2 \u3067\u4fdd\u5b58\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5f15\u304d\u7d99\u304e<\/h2>\n\n\n\n<p>CakePHP4 \u3067\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u5316\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b bcrypt \u304c\u63a1\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002CakePHP4 \u3067\u65b0\u898f\u306b\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u5834\u5408\u306f\u3053\u306e\u65b9\u6cd5\u3067\u554f\u984c\u306a\u3044\u306e\u3067\u3059\u304c\u3001CakePHP2 \u304b\u3089\u306e\u79fb\u884c\u306e\u5834\u5408\u3001\u65e2\u5b58\u306e\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u5f15\u304d\u7d99\u3050\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002CakePHP2 \u3067\u306f\u30cf\u30c3\u30b7\u30e5\u95a2\u6570\u306b SHA-1 \u304c\u4f7f\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u30b9\u30e0\u30fc\u30ba\u306a\u79fb\u884c\u304c\u53ef\u80fd\u306a\u3088\u3046\u306bCakePHP4 \u3067\u3082 SHA-1 \u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u624b\u9806\u3067 SHA-1 \u306e\u30cf\u30c3\u30b7\u30e5\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>config\\app_local.php \u306bCakePHP2\u5074\u306e app\\Config\\core.php \u3067\u6307\u5b9a\u3057\u3066\u3044\u305f Security.salt \u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>'Security' =&gt; &#91;\n    'salt' =&gt; env('SECURITY_SALT', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'),\n],<\/code><\/pre>\n\n\n\n<p>2. \u6307\u5b9a\u3057\u305f Security.salt \u3092\u4f7f\u7528\u3059\u308b\u305f\u3081 config\\bootstrap.php \u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Security::setSalt(Configure::read('Security.salt'));<\/code><\/pre>\n\n\n\n<p>3. src\/Application.php \u306e getAuthenticationService \u30e1\u30bd\u30c3\u30c9\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$service-&gt;loadIdentifier('Authentication.Password', &#91;\n    'passwordHasher' =&gt; &#91;\n        'className' =&gt; 'Authentication.Fallback',\n        'hashers' =&gt; &#91;\n            'Authentication.Default',\n            &#91;\n                'className' =&gt; 'Authentication.Legacy',\n                'hashType' =&gt; 'sha1',\n                'salt' =&gt; true\n            ],\n        ]\n    ]\n]);<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067 CakePHP2 \u3067\u4fdd\u5b58\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001CakePHP4 \u3067\u3082\u30ed\u30b0\u30a4\u30f3\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">bcrypt \u3067\u30cf\u30c3\u30b7\u30e5\u5316\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>CakePHP2 \u3067\u4f7f\u7528\u3057\u3066\u3044\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5f15\u304d\u7d99\u304e\u3001CakePHP4 \u3067\u3082\u540c\u3058\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001CakePHP4 \u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3001bcrypt \u306b\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u5f0f\u3067\u30cf\u30c3\u30b7\u30e5\u5316\u3055\u308c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$2y$10$AbCd1EfGH2IjkL3MN4fGH2IjkL3jkL3MN4fGH2IjkL3MN4fGH2Ijk<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u306f\u6b21\u306e\u3088\u3046\u306a\u610f\u5473\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\">\n<table style=\"width: 100%; height: 279px;\">\n<tbody>\n<tr style=\"height: 46px;\">\n<td style=\"width: 12.381%; height: 46px;\">1-3\u6841\u76ee<\/td>\n<td style=\"width: 25.7143%; height: 46px;\">$2y<\/td>\n<td style=\"width: 61.7857%; height: 46px;\">\u30cf\u30c3\u30b7\u30e5\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\uff082, 2a, 2b, 2x, 2y \u7b49\u306e\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002\uff09<\/td>\n<\/tr>\n<tr style=\"height: 70px;\">\n<td style=\"width: 12.381%; height: 70px;\">4-6\u6841\u76ee<\/td>\n<td style=\"width: 25.7143%; height: 70px;\">$10<\/td>\n<td style=\"width: 61.7857%; height: 70px;\">\u30b9\u30c8\u30ec\u30c3\u30c1\u30f3\u30b0\u56de\u6570\uff082\u306e\u30b9\u30c8\u30ec\u30c3\u30c1\u30f3\u30b0\u56de\u6570\u5206\u3001\u9023\u7d9a\u3057\u3066\u30cf\u30c3\u30b7\u30e5\u5316\u3092\u884c\u3044\u307e\u3059\u300210\u306e\u5834\u5408\u30012\u306e10\u4e57=1024\u56de\u30cf\u30c3\u30b7\u30e5\u5024\u3078\u306e\u8a08\u7b97\u3092\u884c\u3044\u307e\u3059\u3002\uff09<\/td>\n<\/tr>\n<tr style=\"height: 70px;\">\n<td style=\"width: 12.381%; height: 70px;\">7-29\u6841\u76ee<\/td>\n<td style=\"width: 25.7143%; height: 70px;\">AbCd1EfGH2IjkL3MN4fGH2I<\/td>\n<td style=\"width: 61.7857%; height: 70px;\">\u30bd\u30eb\u30c8\uff08\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u4ed8\u52a0\u3059\u308b\u6587\u5b57\u5217\u3002CakePHP2 \u3067\u306f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001bcrypt \u3067\u306f\u30ec\u30b3\u30fc\u30c9\u3054\u3068\u306b\u5909\u5316\u3057\u307e\u3059\u3002\uff09<\/td>\n<\/tr>\n<tr style=\"height: 93px;\">\n<td style=\"width: 12.381%; height: 93px;\">30-59\u6841\u76ee<\/td>\n<td style=\"width: 25.7143%; height: 93px;\">jkL3jkL3MN4fGH2IjkL3MN4fGH2Ijk<\/td>\n<td style=\"width: 61.7857%; height: 93px;\">\u30cf\u30c3\u30b7\u30e5\u5024\uff08\u30b9\u30c8\u30ec\u30c3\u30c1\u30f3\u30b0\u56de\u6570\u5206\u8a08\u7b97\u3057\u305f\u7d50\u679c\u306e\u30cf\u30c3\u30b7\u30e5\u5024\u3002\u5165\u529b\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u5024\u3068\u3001\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30cf\u30c3\u30b7\u30e5\u5024\u304c\u4e00\u81f4\u3057\u3066\u3044\u308c\u3070\u8a8d\u8a3c\u304cOK\u3068\u306a\u308a\u307e\u3059\u3002\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n\n\n\n<p>CakePHP2 \u306f\u5168\u3066\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30bd\u30eb\u30c8\u304c\u56fa\u5b9a\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001CakePHP4 \u3067\u306f\u30ec\u30b3\u30fc\u30c9\u3054\u3068\u306b\u7570\u306a\u308a\u3001CakePHP2 \u306b\u6bd4\u3079\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5b89\u5168\u6027\u304c\u5411\u4e0a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u3068\u524d\u3005\u56de\u306f CakePHP2 \u304b\u3089 CakePHP4 \u306e\u79fb\u884c\u4f5c\u696d\u3068\u3057\u3066\u3001CakePHP2 \u5074\u306e\u30bd\u30fc\u30b9\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3068\u3001CakePHP4 \u306e\u4ed5\u69d8\u306b\u5408\u308f\u305b\u3066\u30bd\u30fc\u30b9\u306e\u4e00\u62ec\u5909\u63db\u3092\u884c\u3046\u30b3\u30f3\u30d0\u30fc\u30bf\u306e\u8003\u3048\u65b9\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1464,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,19],"tags":[],"class_list":["post-1461","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cakephp","category-oss"],"_links":{"self":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/1461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1461"}],"version-history":[{"count":17,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/1461\/revisions"}],"predecessor-version":[{"id":1641,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/1461\/revisions\/1641"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/media\/1464"}],"wp:attachment":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}