Fixes #7163 [skip ci]

This commit is contained in:
Qiang Xue
2015-02-04 21:05:56 -05:00
parent cab7bf61a0
commit d3bc0b3341
10 changed files with 70 additions and 30 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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