{"id":266857,"date":"2015-10-27T11:34:02","date_gmt":"2015-10-27T08:34:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=266857"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=266857","title":{"rendered":"Api-platform"},"content":{"rendered":"<br \/>\n<blockquote><p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d84\/db6\/8e6\/d84db68e6f4a3dc2fddb00943b39f509.png\" alt=\"image\" align=\"left\"\/> <br \/>  \u0421 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0435\u043c Web 3.0 \u0432\u0441\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u0435\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u0445\u043e\u0434\u044b API first \u0438 Linked Data (\u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 Sematic Web). \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u044d\u0442\u0438\u043c \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f API \u043d\u0430 \u0431\u0430\u0437\u0435 \u0441\u0445\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 <a href=\"http:\/\/schema.org\/\">schema.org<\/a> \u0441 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 <a href=\"http:\/\/json-ld.org\/\">JSON-LD<\/a>, <\/p>\n<p>  \u042d\u0442\u043e \u0443\u043a\u043e\u0440\u043e\u0447\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f <a href=\"https:\/\/api-platform.com\/doc\/1.0\/getting-started\/api\">\u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430 Api-platform<\/a>  <\/p><\/blockquote>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<ol>\n<li>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Composer<br \/> \n<pre><code class=\"bash\">composer create-project api-platform\/api-platform blog-api <\/code><\/pre>\n<p>  <\/li>\n<li> \u0423\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u0443\u044e \u0434\u0435\u043c\u043a\u0443<br \/> \n<ol>\n<li>\u041e\u0447\u0438\u0449\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b app\/config\/schema.yml \u0438 app\/config\/services.yml <\/li>\n<li>\u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 src\/AppBundle\/Entity <\/li>\n<\/ol>\n<p>  <\/li>\n<li> \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0445<br \/> \n<ol>\n<li>Api-platform \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f <a href=\"http:\/\/schema.org\/\">schema.org<\/a><\/li>\n<li>\u0418\u0434\u0435\u043c \u043d\u0430 \u0441\u0430\u0439\u0442 \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0445\u0435\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <a href=\"https:\/\/schema.org\/BlogPosting\">schema.org\/BlogPosting<\/a> <\/li>\n<li> \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b app\/config\/schema.yml. \u0412 \u043d\u0435\u043c \u0443\u043a\u0430\u0436\u0435\u043c \u0432 \u043a\u0430\u043a\u043e\u043c \u043d\u0435\u0439\u043c\u0441\u043f\u0435\u0439\u0441\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0438\u043f\u044b, \u043a\u0430\u043a\u0438\u0435 \u0442\u0438\u043f\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b (\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 Schema.org (http:\/\/schema.org\/) \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u044b\u0435 \u0441\u0445\u0435\u043c\u044b \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439). \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0432\u044f\u0437\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438.\n<pre><code class=\"php\"># app\/config\/schema.yml   annotationGenerators:     - ApiPlatform\\SchemaGenerator\\AnnotationGenerator\\PhpDocAnnotationGenerator     - ApiPlatform\\SchemaGenerator\\AnnotationGenerator\\DoctrineOrmAnnotationGenerator     - ApiPlatform\\SchemaGenerator\\AnnotationGenerator\\ConstraintAnnotationGenerator     - ApiPlatform\\SchemaGenerator\\AnnotationGenerator\\DunglasApiAnnotationGenerator namespaces:   entity: AppBundle\\Entity  types:   SocialMediaPosting: ~   BlogPosting: ~    Article:      properties:        articleBody: ~       articleSection: ~   CreativeWork:     properties:       author:         range: Person         cardinality: (*..0)       headline: ~       isFamilyFriendly: ~       datePublished: ~   Thing:     properties:       name: ~   Person:     properties: {}  <\/code><\/pre>\n<\/li>\n<\/ol>\n<p>  <\/li>\n<li> \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e:\n<ul>\n<li>\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u0435\u0439 \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0441 schema.org \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 PHPDoc <\/li>\n<li> \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 Doctrine ORM<\/li>\n<li>\u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 Symfony <\/li>\n<li> \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 Iri \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0434\u043b\u044f \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 (\u0441\u043c\u044b\u0441\u043b\u043e\u0432\u043e\u0439) \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/li>\n<li> \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 PSR-2 coding style<\/li>\n<\/ul>\n<pre><code class=\"bash\">bin\/schema generate-types src\/ app\/config\/schema.yml <\/code><\/pre>\n<\/li>\n<li> \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 <br \/> \n<pre><code class=\"bash\">app\/console doctrine:database:create <\/code><\/pre>\n<p>   <\/li>\n<li> \u0418 \u0441\u0445\u0435\u043c\u0443 \u043d\u0430\u0448\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439<br \/> \n<pre><code class=\"bash\">app\/console doctrine:schema:create <\/code><\/pre>\n<p>  \u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0438\u0437 \u0441\u0445\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c Api-platform, \u043d\u043e \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c PHP, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c schema bundle \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e.  <\/li>\n<li> \u0421\u043e\u0437\u0434\u0430\u0435\u043c API<br \/>  \u042d\u0442\u0438\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e ApiBundle. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0438\u0448\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 API \u0432 \u0432\u0438\u0434\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 Symfony<br \/>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u043a\u043b\u0430\u0441\u0441\u044b BlogPosting \u0438 Person<br \/> \n<pre><code class=\"php\"># app\/config\/services.yml   services:     resource.blog_posting:         parent:    &quot;api.resource&quot;         arguments: [ &quot;AppBundle\\\\Entity\\\\BlogPosting&quot; ]         tags:      [ { name: &quot;api.resource&quot; } ]       resource.person:         parent:    &quot;api.resource&quot;         arguments: [ &quot;AppBundle\\\\Entity\\\\Person&quot; ]         tags:      [ { name: &quot;api.resource&quot; } ]  <\/code><\/pre>\n<p>  Voil\u00e0! \u041d\u0430\u0448\u0435 Api \u0433\u043e\u0442\u043e\u0432\u043e \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e\u044e  <\/li>\n<li> \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\n<pre><code class=\"bash\">app\/console server:start <\/code><\/pre>\n<p>  <a href=\"http:\/\/localhost:8000\/doc\">localhost:8000\/doc<\/a><br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d59\/410\/30d\/d5941030d9d20d427fd8f393c80569d8.png\" alt=\"image\"\/><\/p>\n<p>  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 API \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Postman (\u0435\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Google Chrome) <a href=\"https:\/\/www.getpostman.com\/\">www.getpostman.com<\/a><\/p>\n<p>  \u0417\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0432\u0442\u043e\u0440\u043e\u0432<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8f1\/fb7\/901\/8f1fb79017ff4385be15a2c1787609e3.png\"\/><br \/>  \u0414\u043e\u0431\u0430\u043b\u0432\u044f\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0430<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6a6\/c3d\/cac\/6a6c3dcacace41b79923634db58d8f59.png\"\/><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0442\u044c\u044e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/03d\/aad\/794\/03daad79431246df9e140575549dd498.png\"\/><\/p>\n<p>  \u0417\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/27e\/9eb\/f4a\/27e9ebf4af6846598153be182ae6645b.png\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e. \u041f\u043e\u043b\u0435 isFamilyFriendly \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c Boolean.<\/p>\n<pre><code>{     &quot;name&quot;: &quot;API Platform is great&quot;,     &quot;headline&quot;: &quot;You'll love that framework!&quot;,     &quot;articleBody&quot;: &quot;The body of my article.&quot;,     &quot;articleSection&quot;: &quot;technology&quot;,     &quot;author&quot;: &quot;\/people\/1&quot;,     &quot;isFamilyFriendly&quot;: &quot;maybe&quot;,     &quot;datePublished&quot;: &quot;2015-05-11&quot; } <\/code><\/pre>\n<p>  \u0418 \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0430\u043c \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code>{     &quot;@context&quot;: &quot;\/contexts\/ConstraintViolationList&quot;,     &quot;@type&quot;: &quot;ConstraintViolationList&quot;,     &quot;hydra:title&quot;: &quot;An error occurred&quot;,     &quot;hydra:description&quot;: &quot;isFamilyFriendly: This value should be of type boolean.\\n&quot;,     &quot;violations&quot;: [         {             &quot;propertyPath&quot;: &quot;isFamilyFriendly&quot;,             &quot;message&quot;: &quot;This value should be of type boolean.&quot;         }     ] }  <\/code><\/pre>\n<p>  \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c:   <\/p>\n<pre><code>{     &quot;name&quot;: &quot;API Platform is great&quot;,     &quot;headline&quot;: &quot;You'll love that framework!&quot;,     &quot;articleBody&quot;: &quot;The body of my article.&quot;,     &quot;articleSection&quot;: &quot;technology&quot;,     &quot;author&quot;: &quot;\/people\/1&quot;,     &quot;isFamilyFriendly&quot;: true,       &quot;datePublished&quot;: &quot;2015-05-11&quot; } <\/code><\/pre>\n<p>  \u0418 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f.<\/p>\n<\/li>\n<\/ol>\n<p>  \u0412\u043e\u0442 \u0435\u0449\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 API-platform \u2014 ApiBundle:<\/p>\n<ul>\n<li> <a href=\"https:\/\/api-platform.com\/doc\/1.0\/api-bundle\/filters\">\u0444\u0438\u043b\u044c\u0442\u0440\u044b<\/a> <\/li>\n<li> <a href=\"https:\/\/api-platform.com\/doc\/1.0\/api-bundle\/serialization-groups-and-relations\">\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/a><\/li>\n<li> <a href=\"https:\/\/api-platform.com\/doc\/1.0\/api-bundle\/operations\">\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b<\/a><\/li>\n<li> <a href=\"https:\/\/api-platform.com\/doc\/1.0\/api-bundle\/data-providers\">\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/a><\/li>\n<li> <a href=\"https:\/\/api-platform.com\/doc\/1.0\/api-bundle\/the-event-system\">\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/a> <\/li>\n<\/ul>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/269377\/\"> http:\/\/habrahabr.ru\/post\/269377\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<blockquote><p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d84\/db6\/8e6\/d84db68e6f4a3dc2fddb00943b39f509.png\" alt=\"image\" align=\"left\"\/> <br \/>  \u0421 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0435\u043c Web 3.0 \u0432\u0441\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u0435\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u0445\u043e\u0434\u044b API first \u0438 Linked Data (\u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 Sematic Web). \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u044d\u0442\u0438\u043c \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f API \u043d\u0430 \u0431\u0430\u0437\u0435 \u0441\u0445\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 <a href=\"http:\/\/schema.org\/\">schema.org<\/a> \u0441 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 <a href=\"http:\/\/json-ld.org\/\">JSON-LD<\/a>, <\/p>\n<p>  \u042d\u0442\u043e \u0443\u043a\u043e\u0440\u043e\u0447\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f <a href=\"https:\/\/api-platform.com\/doc\/1.0\/getting-started\/api\">\u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430 Api-platform<\/a>  <\/p><\/blockquote>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-266857","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/266857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266857"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/266857\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}