response examples of lists role APIs are lacking

Bug #1370477 reported by Masahito Muroi
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned
openstack-api-site
Fix Released
Undecided
Ciaran O Tuathail

Bug Description

Some listing roles APIs of responce examples are lacking.

https://github.com/openstack/keystone-specs/blob/5fb080c41937614a867c4471e9b6c8a1c2ee59f0/api/v3/identity-api-v3.rst#create-role

For example:
Lists role for a user on a domain API's example is

[
    {
        "id": "--role-id--",
        "name": "--role-name--"
    },
    {
        "id": "--role-id--",
        "name": "--role-name--"
    }
]

but the actual API's response is
{
    "links": {
        "next": null,
        "previous": null,
        "self": "http://192.168.56.10:5000/v3/domains/716d729b22d647e5a04a2405d66c5eff/users/21de7aaafeb9454ba4c5b40b19016199/roles"
    },
    "roles": [
        {
            "id": "3d4b58f4be7649a497bb18b3f2e25d76",
            "links": {
                "self": "http://192.168.56.10:5000/v3/roles/3d4b58f4be7649a497bb18b3f2e25d76"
            },
            "name": "Member"
        }
    ]
}

Same lacks exist in
- Lists roles for a user on a domain.
- Lists roles for a specified domain group.
- Lists roles for a user in a project.
- Lists roles for a project group.
- Lists roles.
- Lists policies.

These API's response examples don't have "roles", "links", "next", "previous" and "self" keys.

Revision history for this message
Anne Gentle (annegentle) wrote :

Where do you see these response examples? That will help us know where to fix.

Changed in openstack-api-site:
status: New → Incomplete
Revision history for this message
Masahito Muroi (muroi-masahito) wrote :

I see the examples in Complete API Reference[1] .

[1] http://developer.openstack.org/api-ref-identity-v3.html

tags: added: documentation
description: updated
Changed in keystone:
importance: Undecided → Medium
importance: Medium → Low
status: New → Confirmed
Changed in openstack-api-site:
assignee: nobody → Ciaran O Tuathail (ciaran-otuathail)
Changed in keystone:
assignee: nobody → Ciaran O Tuathail (ciaran-otuathail)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

Changed in openstack-api-site:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/154781
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=1d8c850921b8de999c1471ed88c1e17b95cbe3eb
Submitter: Jenkins
Branch: master

commit 1d8c850921b8de999c1471ed88c1e17b95cbe3eb
Author: tuathail <email address hidden>
Date: Tue Feb 10 18:52:15 2015 +0000

    Updates samples responses to API calls

    According to bug 1370477 the sample responses provided lack the
    "roles", "links", "next", "previous" and "self" keys. They are
    added in in this commit.

    Change-Id: I62b285f748c7796944ba5307db4d0905c5fd63c0
    Closes-Bug: #1370477

Changed in openstack-api-site:
status: In Progress → Fix Released
Changed in keystone:
milestone: none → liberty-1
milestone: liberty-1 → kilo-rc1
Revision history for this message
Steve Martinelli (stevemar) wrote :

@ciaran-otuathail - is a patch being submitted to keystone-specs?

Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in keystone:
status: Confirmed → Invalid
milestone: kilo-rc1 → none
assignee: Ciaran O Tuathail (ciaran-otuathail) → nobody
importance: Low → Undecided
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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