diff --git a/docs/guide-es/rest-resources.md b/docs/guide-es/rest-resources.md index 066a1b2..3d8979e 100644 --- a/docs/guide-es/rest-resources.md +++ b/docs/guide-es/rest-resources.md @@ -145,9 +145,11 @@ Cuando un objeto `User` es devuelto en una respuesta, puede contener un elemento "id": 100, "email": "user@example.com", // ... - "_links" => [ - "self": "https://example.com/users/100" - ] + "_links" => { + "self": { + "href": "https://example.com/users/100" + } + } } ``` diff --git a/docs/guide-es/rest-response-formatting.md b/docs/guide-es/rest-response-formatting.md index 4eff61f..2b8826a 100644 --- a/docs/guide-es/rest-response-formatting.md +++ b/docs/guide-es/rest-response-formatting.md @@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8 ... ], "_links": { - "self": "http://localhost/users?page=1", - "next": "http://localhost/users?page=2", - "last": "http://localhost/users?page=50" + "self": { + "href": "http://localhost/users?page=1" + }, + "next": { + "href": "http://localhost/users?page=2" + }, + "last": { + "href": "http://localhost/users?page=50" + } }, "_meta": { "totalCount": 1000, diff --git a/docs/guide-ja/rest-resources.md b/docs/guide-ja/rest-resources.md index efebccd..9c21592 100644 --- a/docs/guide-ja/rest-resources.md +++ b/docs/guide-ja/rest-resources.md @@ -164,9 +164,11 @@ class User extends ActiveRecord implements Linkable "id": 100, "email": "user@example.com", // ... - "_links" => [ - "self": "https://example.com/users/100" - ] + "_links" => { + "self": { + "href": "https://example.com/users/100" + } + } } ``` diff --git a/docs/guide-ja/rest-response-formatting.md b/docs/guide-ja/rest-response-formatting.md index fbf23f2..bbf9033 100644 --- a/docs/guide-ja/rest-response-formatting.md +++ b/docs/guide-ja/rest-response-formatting.md @@ -131,9 +131,15 @@ Content-Type: application/json; charset=UTF-8 ... ], "_links": { - "self": "http://localhost/users?page=1", - "next": "http://localhost/users?page=2", - "last": "http://localhost/users?page=50" + "self": { + "href": "http://localhost/users?page=1" + }, + "next": { + "href": "http://localhost/users?page=2" + }, + "last": { + "href": "http://localhost/users?page=50" + } }, "_meta": { "totalCount": 1000, diff --git a/docs/guide-ru/rest-resources.md b/docs/guide-ru/rest-resources.md index c383083..6730f1e 100644 --- a/docs/guide-ru/rest-resources.md +++ b/docs/guide-ru/rest-resources.md @@ -160,9 +160,11 @@ class User extends ActiveRecord implements Linkable "id": 100, "email": "user@example.com", // ... - "_links" => [ - "self": "https://example.com/users/100" - ] + "_links" => { + "self": { + "href": "https://example.com/users/100" + } + } } ``` diff --git a/docs/guide-ru/rest-response-formatting.md b/docs/guide-ru/rest-response-formatting.md index 6e87aba..d0e0aff 100644 --- a/docs/guide-ru/rest-response-formatting.md +++ b/docs/guide-ru/rest-response-formatting.md @@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8 ... ], "_links": { - "self": "http://localhost/users?page=1", - "next": "http://localhost/users?page=2", - "last": "http://localhost/users?page=50" + "self": { + "href": "http://localhost/users?page=1" + }, + "next": { + "href": "http://localhost/users?page=2" + }, + "last": { + "href": "http://localhost/users?page=50" + } }, "_meta": { "totalCount": 1000, diff --git a/docs/guide-zh-CN/rest-resources.md b/docs/guide-zh-CN/rest-resources.md index a3c01da..d5a7cd8 100644 --- a/docs/guide-zh-CN/rest-resources.md +++ b/docs/guide-zh-CN/rest-resources.md @@ -151,9 +151,11 @@ class User extends ActiveRecord implements Linkable "id": 100, "email": "user@example.com", // ... - "_links" => [ - "self": "https://example.com/users/100" - ] + "_links" => { + "self": { + "href": "https://example.com/users/100" + } + } } ``` diff --git a/docs/guide-zh-CN/rest-response-formatting.md b/docs/guide-zh-CN/rest-response-formatting.md index 477c827..ba174b6 100644 --- a/docs/guide-zh-CN/rest-response-formatting.md +++ b/docs/guide-zh-CN/rest-response-formatting.md @@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8 ... ], "_links": { - "self": "http://localhost/users?page=1", - "next": "http://localhost/users?page=2", - "last": "http://localhost/users?page=50" + "self": { + "href": "http://localhost/users?page=1" + }, + "next": { + "href": "http://localhost/users?page=2" + }, + "last": { + "href": "http://localhost/users?page=50" + } }, "_meta": { "totalCount": 1000, diff --git a/docs/guide/rest-resources.md b/docs/guide/rest-resources.md index ea276fb..cbfcbdc 100644 --- a/docs/guide/rest-resources.md +++ b/docs/guide/rest-resources.md @@ -170,9 +170,11 @@ to the user, for example, "id": 100, "email": "user@example.com", // ... - "_links" => [ - "self": "https://example.com/users/100" - ] + "_links" => { + "self": { + "href": "https://example.com/users/100" + } + } } ``` diff --git a/docs/guide/rest-response-formatting.md b/docs/guide/rest-response-formatting.md index a88304d..b6e98ec 100644 --- a/docs/guide/rest-response-formatting.md +++ b/docs/guide/rest-response-formatting.md @@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8 ... ], "_links": { - "self": "http://localhost/users?page=1", - "next": "http://localhost/users?page=2", - "last": "http://localhost/users?page=50" + "self": { + "href": "http://localhost/users?page=1" + }, + "next": { + "href": "http://localhost/users?page=2" + }, + "last": { + "href": "http://localhost/users?page=50" + } }, "_meta": { "totalCount": 1000,