{"id":278195,"date":"2016-04-13T13:50:18","date_gmt":"2016-04-13T09:50:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=278195"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=278195","title":{"rendered":"\u041e\u0442 \u043b\u044e\u0431\u0432\u0438 \u0434\u043e \u043d\u0435\u043d\u0430\u0432\u0438\u0441\u0442\u0438 \u2014 \u043e\u0434\u0438\u043d \u0448\u0430\u0433, \u0438\u043b\u0438 \u043a\u0430\u043a \u044f \u0440\u0430\u0437\u043b\u044e\u0431\u0438\u043b ActiveRecord"},"content":{"rendered":"<p>       \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u0432\u0435\u0441\u044c\u043c\u0430 \u0434\u043e\u043b\u0433\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e REST API, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0438\u0445 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e. \u0427\u0442\u043e \u0436\u0435 \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u2014 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438\u0437 \u0431\u0430\u0437\u044b, \u043f\u043e 20 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 + \u043f\u043e\u0434\u0442\u044f\u0433\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u0432\u044f\u0437\u0438. \u041d\u0430 \u044d\u0442\u043e \u0443\u0445\u043e\u0434\u0438\u043b\u043e 50 (!!!) \u0441\u0435\u043a\u0443\u043d\u0434. \u0413\u0440\u0435\u0445 \u0431\u044b\u043b\u043e \u043d\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0431\u0430\u0437\u043e\u0439. \u042f \u043d\u0435 \u0432\u0435\u0440\u0438\u043b, \u0447\u0442\u043e \u043f\u0440\u0438 50\u043a \u0437\u0430\u043f\u0438\u0441\u044f\u0445, \u043f\u043e\u0440\u044f\u0434\u043a\u0430 6-7 \u0434\u0436\u043e\u0439\u043d\u043e\u0432 \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438, \u0438 \u0437\u0430\u0442\u0435\u043c 6-7 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 <a href=\"https:\/\/laravel.com\/docs\/5.2\/eloquent-relationships#eager-loading\">eager loading<\/a> \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0442\u043e\u0440\u043c\u043e\u0437\u0430.<\/p>\n<p>  \u0422\u0430\u043a \u0438 \u0431\u044b\u043b\u043e \u2014 \u043d\u0430 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0443\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 0.18\u0441, \u0447\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u0440\u0438\u0435\u043c\u043b\u0438\u043c\u043e.<\/p>\n<p>  \u041e\u043a\u0435\u0439, \u0438\u0434\u0443 \u043a\u043e\u043f\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435. \u0418 \u043c\u043e\u0435\u043c\u0443 \u0432\u043e\u0437\u043c\u0443\u0449\u0435\u043d\u0438\u044e \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430, \u043a\u043e\u0433\u0434\u0430 \u044f \u0443\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u0432\u0441\u0435 \u0432\u0440\u0435\u043c\u044f \u0442\u0440\u0430\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u043e\u0434\u0435\u043b\u0435\u0439. \u041a\u0430\u043a \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442?<\/p>\n<pre><code class=\"php\">class OrderController {     public function index(Request $request, OrderFilter $filter)     {         \/\/ \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u044b         $query = $filter-&gt;applyFilters($request);          \/\/ \u041e\u0442\u0434\u0430\u0435\u043c \u043f\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e         return $query-&gt;paginate($request-&gt;input('count', 20));     } } <\/code><\/pre>\n<p>  Dispatcher \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043e\u043d \u0432\u0438\u0434\u0435\u043b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a <code>Accept: application\/json<\/code>, \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0441\u0432\u043e\u044e \u0433\u0440\u044f\u0437\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u0418 \u0442\u0443\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c \u0436\u0430\u0440\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0432\u044f\u0437\u0438, \u0438 \u0434\u0430\u043b\u0435\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/laravel\/framework\/blob\/5.2\/src\/Illuminate\/Database\/Eloquent\/Model.php#L2438\">\u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432<\/a> \u2014 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0433\u0435\u0442\u0442\u0435\u0440\u044b, \u043c\u0443\u0442\u0430\u0442\u043e\u0440\u044b, \u043a\u0430\u0441\u0442\u044b.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0422\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u0437\u043b\u043e\u0432\u0435\u0449\u0438\u0439 \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">\/**  * Convert the model's attributes to an array.  *  * @return array  *\/ public function attributesToArray() {     $attributes = $this-&gt;getArrayableAttributes();     \/\/ If an attribute is a date, we will cast it to a string after converting it     \/\/ to a DateTime \/ Carbon instance. This is so we will get some consistent     \/\/ formatting while accessing attributes vs. arraying \/ JSONing a model.     foreach ($this-&gt;getDates() as $key) {         if (! isset($attributes[$key])) {             continue;         }         $attributes[$key] = $this-&gt;serializeDate(             $this-&gt;asDateTime($attributes[$key])         );     }     $mutatedAttributes = $this-&gt;getMutatedAttributes();     \/\/ We want to spin through all the mutated attributes for this model and call     \/\/ the mutator for the attribute. We cache off every mutated attributes so     \/\/ we don't have to constantly check on attributes that actually change.     foreach ($mutatedAttributes as $key) {         if (! array_key_exists($key, $attributes)) {             continue;         }         $attributes[$key] = $this-&gt;mutateAttributeForArray(             $key, $attributes[$key]         );     }     \/\/ Next we will handle any casts that have been setup for this model and cast     \/\/ the values to their appropriate type. If the attribute has a mutator we     \/\/ will not perform the cast on those attributes to avoid any confusion.     foreach ($this-&gt;getCasts() as $key =&gt; $value) {         if (! array_key_exists($key, $attributes) ||             in_array($key, $mutatedAttributes)) {             continue;         }         $attributes[$key] = $this-&gt;castAttribute(             $key, $attributes[$key]         );         if ($attributes[$key] && ($value === 'date' || $value === 'datetime')) {             $attributes[$key] = $this-&gt;serializeDate($attributes[$key]);         }     }     \/\/ Here we will grab all of the appended, calculated attributes to this model     \/\/ as these attributes are not really in the attributes array, but are run     \/\/ when we need to array or JSON the model for convenience to the coder.     foreach ($this-&gt;getArrayableAppends() as $key) {         $attributes[$key] = $this-&gt;mutateAttributeForArray($key, null);     }     return $attributes; } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u0443\u0442\u0430\u0442\u043e\u0440\u044b \u2014 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0448\u0442\u0443\u043a\u0430. \u041a\u043b\u0430\u0441\u0441\u043d\u043e \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c \u0432 \u043c\u043e\u0434\u0435\u043b\u044f\u0445\/\u0441\u0432\u044f\u0437\u044f\u0445, \u043d\u043e \u043d\u0430 <a href=\"https:\/\/laravel.com\/docs\/5.2\/eloquent-mutators\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a> \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u043b\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c, \u0447\u0442\u043e \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 (\u0442\u0430\u043a \u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c huge impact) \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>  \u0418 \u0442\u0443\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u043e\u0435\u0437\u0434 \u0443\u0436\u0435 \u0440\u0430\u0437\u043e\u0433\u043d\u0430\u043b\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e, \u0438 \u043d\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0430 datamapper\/querybuilder. \u041e\u0441\u0442\u0430\u043b\u0441\u044f \u044f \u0441 ActiveRecord \u0443 \u0440\u0430\u0437\u0431\u0438\u0442\u043e\u0433\u043e \u043a\u043e\u0440\u044b\u0442\u0430. \u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u044d\u0442\u0430 \u043c\u0430\u0433\u0438\u044f, \u043d\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0435\u0439 \u0437\u043b\u043e\u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0442\u044c.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043b\u043e\u043c\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0437\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c Redis, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043b\u0435\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439. \u041d\u043e \u043d\u0435 \u0442\u0443\u0442 \u0442\u043e \u0431\u044b\u043b\u043e! \u041e\u0431\u044a\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u043b\u0438\u043a, \u0447\u0442\u043e Redis \u043f\u0430\u0434\u0430\u043b (\u0433\u0440\u0435\u0445 \u043d\u0430 \u043c\u043d\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0435\u0433\u043e \u043f\u043e\u0434\u0442\u044e\u043d\u0438\u0442\u044c). \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 gzcompress, \u0438\u0431\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 64\u043c\u0431 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0433\u043e\u0434\u044f\u0442\u0441\u044f. \u0418 \u0434\u0430\u0436\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u0437\u0430\u0432\u0435\u043b, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u0430 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e Redis \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0443\u043f\u0430\u0434\u0435\u0442 \u043f\u043e\u0434 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e. \u0414\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u0434\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0437\u0430 0.5\u0441, \u0432\u0441\u0435 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b. \u041d\u043e \u044f \u0441\u0438\u0436\u0443 \u0438 \u0434\u0443\u043c\u0430\u044e \u00ab\u043f\u043e\u0434\u043a\u0443\u043f\u0430\u0435\u0442 Laravel \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u043e\u0439, \u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0431\u0435\u0437 \u044d\u0442\u0438\u0445 \u0432\u0430\u0448\u0438\u0445 ActiveRecord\u00bb.<\/p>\n<p>  \u0412\u043e\u0442 \u0438 \u0441\u043a\u0430\u0437\u043a\u0435 \u043a\u043e\u043d\u0435\u0446, \u0430 \u043a\u0442\u043e \u0441\u043b\u0443\u0448\u0430\u043b \u2014 \u043c\u043e\u043b\u043e\u0434\u0435\u0446, \u0431\u043e\u0442\u0442\u043b\u043d\u0435\u043a\u043e\u0432 \u0438\u0437\u0431\u0435\u0436\u0438\u0442.       <\/p>\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=\"https:\/\/habrahabr.ru\/post\/281493\/\"> https:\/\/habrahabr.ru\/post\/281493\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u0432\u0435\u0441\u044c\u043c\u0430 \u0434\u043e\u043b\u0433\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e REST API, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0438\u0445 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e. \u0427\u0442\u043e \u0436\u0435 \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u2014 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.  <\/p>\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-278195","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278195","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=278195"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278195\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=278195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=278195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=278195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}