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
"id": 100,
"email": "user@example.com",
// ...
"_links" => [
"self": "https://example.com/users/100"
]
"_links" => {
"self": {
"href": "https://example.com/users/100"
}
}
}
```
......
......@@ -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,
......
......@@ -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"
}
}
}
```
......
......@@ -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,
......
......@@ -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"
}
}
}
```
......
......@@ -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,
......
......@@ -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"
}
}
}
```
......
......@@ -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,
......
......@@ -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"
}
}
}
```
......
......@@ -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,
......
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