v2 api: correct user list
The GET /v2.0/users route is unnecessarily in the OS-KSADM APIs, it's not part of that extension. It is already defined correctly in the v2-admin APIs. Further, the sample response shows a single user, not a list, so fix that while we're at it. Route link: https://github.com/openstack/keystone/blob/master/keystone/v2_crud/admin_crud.py#L81-L86 Change-Id: I4131b955a6986a1311c1e100a54ab18f8622b2ff
This commit is contained in:
parent
64fbbeda58
commit
cab514de1f
@ -108,7 +108,7 @@ Response Parameters
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: samples/admin/user-show-response.json
|
||||
.. literalinclude:: samples/admin/users-list-response.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"users": [
|
||||
{
|
||||
"id": "3c9530e",
|
||||
"name": "admin",
|
||||
"email": "admin@example.org",
|
||||
"username": "admin",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"id": "a0ae37b",
|
||||
"name": "demo",
|
||||
"email": "demo@example.org",
|
||||
"username": "demo",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"users_links": []
|
||||
}
|
@ -193,34 +193,6 @@ Response Example
|
||||
:language: javascript
|
||||
|
||||
|
||||
List users (admin extension)
|
||||
============================
|
||||
|
||||
.. rest_method:: GET /v2.0/users
|
||||
|
||||
Lists all users.
|
||||
|
||||
Normal response codes: 200,203
|
||||
Error response codes: 413,405,404,403,401,400,503
|
||||
|
||||
Response Parameters
|
||||
-------------------
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- users: users
|
||||
- enabled: enabled
|
||||
- email: email
|
||||
- name: name
|
||||
- id: id
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: samples/OS-KSADM/users-list-response.json
|
||||
:language: javascript
|
||||
|
||||
|
||||
Create user (admin extension)
|
||||
=============================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user