Browse Source

Fixes #7163 [skip ci]

tags/2.0.3
Qiang Xue 10 years ago
parent
commit
d3bc0b3341
  1. 8
      docs/guide-es/rest-resources.md
  2. 12
      docs/guide-es/rest-response-formatting.md
  3. 8
      docs/guide-ja/rest-resources.md
  4. 12
      docs/guide-ja/rest-response-formatting.md
  5. 8
      docs/guide-ru/rest-resources.md
  6. 12
      docs/guide-ru/rest-response-formatting.md
  7. 8
      docs/guide-zh-CN/rest-resources.md
  8. 12
      docs/guide-zh-CN/rest-response-formatting.md
  9. 8
      docs/guide/rest-resources.md
  10. 12
      docs/guide/rest-response-formatting.md

8
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"
}
}
}
```

12
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,

8
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"
}
}
}
```

12
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,

8
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"
}
}
}
```

12
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,

8
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"
}
}
}
```

12
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,

8
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"
}
}
}
```

12
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,

Loading…
Cancel
Save