Comment 2 for bug 1658737

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to craton (master)

Reviewed: https://review.openstack.org/426229
Committed: https://git.openstack.org/cgit/openstack/craton/commit/?id=656535624e55309d7e97f2a9529ffaf7c2b4f8f5
Submitter: Jenkins
Branch: master

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:

        {
          "hosts": [
            {"id": 1, ...},
            {"id": 2, ...}
          ],
          "links": [
            {
              "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=...&..."
            }
          ]
        }

    Closes-bug: #1658737
    Change-Id: I11c5c6053e5f0873ee53df5b7dcb9b2ed25a0b64