{"id":341,"date":"2024-12-21T09:11:45","date_gmt":"2024-12-21T02:11:45","guid":{"rendered":"https:\/\/megadump.ru\/?p=341"},"modified":"2024-12-21T19:11:15","modified_gmt":"2024-12-21T12:11:15","slug":"swagger-docs-laravel","status":"publish","type":"post","link":"https:\/\/phpha.ru\/?p=341","title":{"rendered":"Swagger \u043a\u0430\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 Laravel"},"content":{"rendered":"\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u0430\u0436\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u0441\u0435 Back-end \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041f\u043e\u043a\u0430\u0436\u0435\u0442 Front-end \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c \u0438 \u043a\u0430\u043a\u0438\u0435 \u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b<\/li>\n\n\n\n<li>\u041f\u043e\u043c\u043e\u0436\u0435\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u043c \u043f\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/li>\n\n\n\n<li>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0435\u0433\u043e \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u0442 Back-end \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c<\/li>\n<\/ul>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 Laravel \u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e API \u0441\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 OpenAPI, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442&nbsp;<a href=\"https:\/\/github.com\/DarkaOnLine\/L5-Swagger\">DarkaOnLine\/L5-Swagger<\/a>&nbsp;\u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u043e API.<\/p>\n\n\n\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u0432 \u043a\u043e\u0434\u0435 \u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 (\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u0434\u0430).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n\n\n\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 <a href=\"https:\/\/getcomposer.org\/\">composer<\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">composer require \"darkaonline\/l5-swagger\"\nphp artisan vendor:publish --provider \"L5Swagger\\L5SwaggerServiceProvider\"<\/code><\/pre>\n\n\n\n<p>\u0410 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 (\u0441\u0435\u0439\u0447\u0430\u0441 \u0442\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0443\u0441\u0442\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438) \u0432\u0432\u0435\u0441\u0442\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">php artisan l5-swagger:generate<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439<\/h2>\n\n\n\n<p>\u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432 \u043a\u043e\u0434\u0435 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0435\u0451 \u0432 \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430.<\/p>\n\n\n\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u043c \u043e\u0431\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e API \u0441&nbsp;<code>@OA\\Info()<\/code> \u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0435 \u0432 \u0444\u0430\u0439\u043b <code>\/Http\/Controllers\/Controller.php<\/code> \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">&lt;?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Foundation\\Auth\\Access\\AuthorizesRequests;\nuse Illuminate\\Foundation\\Bus\\DispatchesJobs;\nuse Illuminate\\Foundation\\Validation\\ValidatesRequests;\nuse Illuminate\\Routing\\Controller as BaseController;\n\n\/**\n * @OA\\Info(\n *    title=\"My Cool API\",\n *    description=\"An API of cool stuffs\",\n *    version=\"1.0.0\",\n * )\n *\/\n\nclass Controller extends BaseController\n{\n    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;\n}<\/code><\/pre>\n\n\n\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430 \u043c\u0435\u0442\u043e\u0434\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">\/**\n     * Register\n     * @OA\\Post (\n     *     path=\"\/api\/register\",\n     *     tags={\"Auth\"},\n     *     @OA\\RequestBody(\n     *         @OA\\MediaType(\n     *             mediaType=\"application\/json\",\n     *             @OA\\Schema(\n     *                 @OA\\Property(\n     *                      type=\"object\",\n     *                      @OA\\Property(\n     *                          property=\"name\",\n     *                          type=\"string\"\n     *                      ),\n     *                      @OA\\Property(\n     *                          property=\"email\",\n     *                          type=\"string\"\n     *                      ),\n     *                      @OA\\Property(\n     *                          property=\"password\",\n     *                          type=\"string\"\n     *                      )\n     *                 ),\n     *                 example={\n     *                     \"name\":\"John\",\n     *                     \"email\":\"john@test.com\",\n     *                     \"password\":\"johnjohn1\"\n     *                }\n     *             )\n     *         )\n     *      ),\n     *      @OA\\Response(\n     *          response=200,\n     *          description=\"Success\",\n     *          @OA\\JsonContent(\n     *              @OA\\Property(property=\"meta\", type=\"object\",\n     *                  @OA\\Property(property=\"code\", type=\"number\", example=200),\n     *                  @OA\\Property(property=\"status\", type=\"string\", example=\"success\"),\n     *                  @OA\\Property(property=\"message\", type=\"string\", example=null),\n     *              ),\n     *              @OA\\Property(property=\"data\", type=\"object\",\n     *                  @OA\\Property(property=\"user\", type=\"object\",\n     *                      @OA\\Property(property=\"id\", type=\"number\", example=1),\n     *                      @OA\\Property(property=\"name\", type=\"string\", example=\"John\"),\n     *                      @OA\\Property(property=\"email\", type=\"string\", example=\"john@test.com\"),\n     *                      @OA\\Property(property=\"email_verified_at\", type=\"string\", example=null),\n     *                      @OA\\Property(property=\"updated_at\", type=\"string\", example=\"2022-06-28 06:06:17\"),\n     *                      @OA\\Property(property=\"created_at\", type=\"string\", example=\"2022-06-28 06:06:17\"),\n     *                  ),\n     *                  @OA\\Property(property=\"access_token\", type=\"object\",\n     *                      @OA\\Property(property=\"token\", type=\"string\", example=\"randomtokenasfhajskfhajf398rureuuhfdshk\"),\n     *                      @OA\\Property(property=\"type\", type=\"string\", example=\"Bearer\"),\n     *                      @OA\\Property(property=\"expires_in\", type=\"number\", example=3600),\n     *                  ),\n     *              ),\n     *          )\n     *      ),\n     *      @OA\\Response(\n     *          response=422,\n     *          description=\"Validation error\",\n     *          @OA\\JsonContent(\n     *              @OA\\Property(property=\"meta\", type=\"object\",\n     *                  @OA\\Property(property=\"code\", type=\"number\", example=422),\n     *                  @OA\\Property(property=\"status\", type=\"string\", example=\"error\"),\n     *                  @OA\\Property(property=\"message\", type=\"object\",\n     *                      @OA\\Property(property=\"email\", type=\"array\", collectionFormat=\"multi\",\n     *                        @OA\\Items(\n     *                          type=\"string\",\n     *                          example=\"The email has already been taken.\",\n     *                          )\n     *                      ),\n     *                  ),\n     *              ),\n     *              @OA\\Property(property=\"data\", type=\"object\", example={}),\n     *          )\n     *      )\n     * )\n     *\/\n    public function register(Request $request)\n    {\n        \/\/ validate the incoming request\n        \/\/ set every field as required\n        \/\/ set email field so it only accept the valid email format\n\n        $this->validate($request, [\n            'name' => 'required|string|min:2|max:255',\n            'email' => 'required|string|email:rfc,dns|max:255|unique:users',\n            'password' => 'required|string|min:6|max:255',\n        ]);\n\n        \/\/ if the request valid, create user\n\n        $user = $this->user::create([\n            'name' => $request['name'],\n            'email' => $request['email'],\n            'password' => bcrypt($request['password']),\n        ]);\n\n        \/\/ login the user immediately and generate the token\n        $token = auth()->login($user);\n\n        \/\/ return the response as json \n        return response()->json([\n            'meta' => [\n                'code' => 200,\n                'status' => 'success',\n                'message' => 'User created successfully!',\n            ],\n            'data' => [\n                'user' => $user,\n                'access_token' => [\n                    'token' => $token,\n                    'type' => 'Bearer',\n                    'expires_in' => auth()->factory()->getTTL() * 60,    \/\/ get token expires in seconds\n                ],\n            ],\n        ]);\n    }<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u0430\u044f \u0432\u044b\u0448\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 (\u043c\u0430\u0440\u0448\u0440\u0443\u0442, endpoint) \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f &#171;Register&#187;.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>@OA\\Post<\/code> &#8212; \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0447\u0442\u043e \u044d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 POST<\/li>\n\n\n\n<li><code>path<\/code> &#8212; \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0443\u0442\u044c<\/li>\n\n\n\n<li><code>tags<\/code> &#8212; \u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438<\/li>\n\n\n\n<li><code>@OA\\RequestBody<\/code> &#8212; \u0414\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0435\u043b\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432)<\/li>\n\n\n\n<li><code>@OA\\Property<\/code> &#8212; \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/li>\n\n\n\n<li><code>@OA\\Response<\/code> &#8212; \u0414\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 (\u0438\u0445 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/h2>\n\n\n\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">php artisan l5:generate<\/code><\/pre>\n\n\n\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/api\/documentation<\/code><\/li>\n\n\n\n<li><code>http:\/\/127.0.0.1\/api\/documentation<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u0430\u0436\u043d\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u0441\u0435 Back-end \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[75,74],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-docs","tag-swagger"],"_links":{"self":[{"href":"https:\/\/phpha.ru\/index.php?rest_route=\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpha.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpha.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpha.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpha.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=341"}],"version-history":[{"count":9,"href":"https:\/\/phpha.ru\/index.php?rest_route=\/wp\/v2\/posts\/341\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/phpha.ru\/index.php?rest_route=\/wp\/v2\/posts\/341\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/phpha.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpha.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpha.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}