List response bodies do not support hypermedia links

Bug #1658737 reported by Ian Cordasco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
craton
Fix Released
High
Ian Cordasco

Bug Description

Currently, the response bodies of certain endpoints does not support adding the hypermedia links.

This necessitates a change in how certain responses are returned from the API to include the link relations.

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

Fix proposed to branch: master
Review: https://review.openstack.org/426229

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

Changed in craton:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.