Commit d3bc0b33 by Qiang Xue

Fixes #7163 [skip ci]

parent cab7bf61
...@@ -145,9 +145,11 @@ Cuando un objeto `User` es devuelto en una respuesta, puede contener un elemento ...@@ -145,9 +145,11 @@ Cuando un objeto `User` es devuelto en una respuesta, puede contener un elemento
"id": 100, "id": 100,
"email": "user@example.com", "email": "user@example.com",
// ... // ...
"_links" => [ "_links" => {
"self": "https://example.com/users/100" "self": {
] "href": "https://example.com/users/100"
}
}
} }
``` ```
......
...@@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8 ...@@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8
... ...
], ],
"_links": { "_links": {
"self": "http://localhost/users?page=1", "self": {
"next": "http://localhost/users?page=2", "href": "http://localhost/users?page=1"
"last": "http://localhost/users?page=50" },
"next": {
"href": "http://localhost/users?page=2"
},
"last": {
"href": "http://localhost/users?page=50"
}
}, },
"_meta": { "_meta": {
"totalCount": 1000, "totalCount": 1000,
......
...@@ -164,9 +164,11 @@ class User extends ActiveRecord implements Linkable ...@@ -164,9 +164,11 @@ class User extends ActiveRecord implements Linkable
"id": 100, "id": 100,
"email": "user@example.com", "email": "user@example.com",
// ... // ...
"_links" => [ "_links" => {
"self": "https://example.com/users/100" "self": {
] "href": "https://example.com/users/100"
}
}
} }
``` ```
......
...@@ -131,9 +131,15 @@ Content-Type: application/json; charset=UTF-8 ...@@ -131,9 +131,15 @@ Content-Type: application/json; charset=UTF-8
... ...
], ],
"_links": { "_links": {
"self": "http://localhost/users?page=1", "self": {
"next": "http://localhost/users?page=2", "href": "http://localhost/users?page=1"
"last": "http://localhost/users?page=50" },
"next": {
"href": "http://localhost/users?page=2"
},
"last": {
"href": "http://localhost/users?page=50"
}
}, },
"_meta": { "_meta": {
"totalCount": 1000, "totalCount": 1000,
......
...@@ -160,9 +160,11 @@ class User extends ActiveRecord implements Linkable ...@@ -160,9 +160,11 @@ class User extends ActiveRecord implements Linkable
"id": 100, "id": 100,
"email": "user@example.com", "email": "user@example.com",
// ... // ...
"_links" => [ "_links" => {
"self": "https://example.com/users/100" "self": {
] "href": "https://example.com/users/100"
}
}
} }
``` ```
......
...@@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8 ...@@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8
... ...
], ],
"_links": { "_links": {
"self": "http://localhost/users?page=1", "self": {
"next": "http://localhost/users?page=2", "href": "http://localhost/users?page=1"
"last": "http://localhost/users?page=50" },
"next": {
"href": "http://localhost/users?page=2"
},
"last": {
"href": "http://localhost/users?page=50"
}
}, },
"_meta": { "_meta": {
"totalCount": 1000, "totalCount": 1000,
......
...@@ -151,9 +151,11 @@ class User extends ActiveRecord implements Linkable ...@@ -151,9 +151,11 @@ class User extends ActiveRecord implements Linkable
"id": 100, "id": 100,
"email": "user@example.com", "email": "user@example.com",
// ... // ...
"_links" => [ "_links" => {
"self": "https://example.com/users/100" "self": {
] "href": "https://example.com/users/100"
}
}
} }
``` ```
......
...@@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8 ...@@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8
... ...
], ],
"_links": { "_links": {
"self": "http://localhost/users?page=1", "self": {
"next": "http://localhost/users?page=2", "href": "http://localhost/users?page=1"
"last": "http://localhost/users?page=50" },
"next": {
"href": "http://localhost/users?page=2"
},
"last": {
"href": "http://localhost/users?page=50"
}
}, },
"_meta": { "_meta": {
"totalCount": 1000, "totalCount": 1000,
......
...@@ -170,9 +170,11 @@ to the user, for example, ...@@ -170,9 +170,11 @@ to the user, for example,
"id": 100, "id": 100,
"email": "user@example.com", "email": "user@example.com",
// ... // ...
"_links" => [ "_links" => {
"self": "https://example.com/users/100" "self": {
] "href": "https://example.com/users/100"
}
}
} }
``` ```
......
...@@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8 ...@@ -136,9 +136,15 @@ Content-Type: application/json; charset=UTF-8
... ...
], ],
"_links": { "_links": {
"self": "http://localhost/users?page=1", "self": {
"next": "http://localhost/users?page=2", "href": "http://localhost/users?page=1"
"last": "http://localhost/users?page=50" },
"next": {
"href": "http://localhost/users?page=2"
},
"last": {
"href": "http://localhost/users?page=50"
}
}, },
"_meta": { "_meta": {
"totalCount": 1000, "totalCount": 1000,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment