mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
Fixes #7163 [skip ci]
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user