commit 656535624e55309d7e97f2a9529ffaf7c2b4f8f5
Author: Ian Cordasco <email address hidden>
Date: Thu Jan 26 13:19:02 2017 -0600
Add Hypermedia Pagination Links
This changes all list response bodies to be of the structure defined in
the specification. For example, it changes responses from /v1/hosts to
look like:
Reviewed: https:/ /review. openstack. org/426229 /git.openstack. org/cgit/ openstack/ craton/ commit/ ?id=656535624e5 5309d7e97f2a952 9ffaf7c2b4f8f5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 656535624e55309 d7e97f2a9529ffa f7c2b4f8f5
Author: Ian Cordasco <email address hidden>
Date: Thu Jan 26 13:19:02 2017 -0600
Add Hypermedia Pagination Links
This changes all list response bodies to be of the structure defined in
the specification. For example, it changes responses from /v1/hosts to
look like:
{
"rel": "first",
"href": "http:// .../v1/ hosts"
"rel": "prev",
"href": "http:// .../v1/ hosts?limit= ...&marker= ...&..."
"rel": "self",
"href": "http:// .../v1/ hosts?limit= ...&marker= ...&..."
"rel": "next",
"href": "http:// .../v1/ hosts?limit= ...&marker= ...&..."
"hosts": [
{"id": 1, ...},
{"id": 2, ...}
],
"links": [
{
},
{
},
{
},
{
}
]
}
Closes-bug: #1658737 73ee53df5b7dcb9 b2ed25a0b64
Change-Id: I11c5c6053e5f08