diff --git a/api-ref/source/v3-ext/oauth.inc b/api-ref/source/v3-ext/oauth.inc index b70417963d..842d78f801 100644 --- a/api-ref/source/v3-ext/oauth.inc +++ b/api-ref/source/v3-ext/oauth.inc @@ -409,6 +409,12 @@ Request - user_id: user_id_path - access_token_id: access_token_id_path +Response Example +---------------- + +.. literalinclude:: ./samples/OS-OAUTH1/access-token-roles-list-response.json + :language: javascript + Show role details for an access token ===================================== @@ -432,6 +438,12 @@ Request - role_id: role_id_path - access_token_id: access_token_id_path +Response Example +---------------- + +.. literalinclude:: ./samples/OS-OAUTH1/access-token-role-show-response.json + :language: javascript + Authenticate with Identity API ============================== diff --git a/api-ref/source/v3-ext/samples/OS-OAUTH1/access-token-role-show-response.json b/api-ref/source/v3-ext/samples/OS-OAUTH1/access-token-role-show-response.json new file mode 100644 index 0000000000..cdd1386574 --- /dev/null +++ b/api-ref/source/v3-ext/samples/OS-OAUTH1/access-token-role-show-response.json @@ -0,0 +1,10 @@ +{ + "role": { + "id": "5ad150", + "domain_id": "7cf37b", + "links": { + "self": "http://example.com/identity/v3/roles/5ad150" + }, + "name": "admin" + } +} diff --git a/api-ref/source/v3-ext/samples/OS-OAUTH1/access-token-roles-list-response.json b/api-ref/source/v3-ext/samples/OS-OAUTH1/access-token-roles-list-response.json new file mode 100644 index 0000000000..ca0658b75b --- /dev/null +++ b/api-ref/source/v3-ext/samples/OS-OAUTH1/access-token-roles-list-response.json @@ -0,0 +1,25 @@ +{ + "roles": [ + { + "id": "5ad150", + "domain_id": "7cf37b", + "links": { + "self": "http://example.com/identity/v3/roles/5ad150" + }, + "name": "admin" + }, + { + "id": "a62eb6", + "domain_id": "7cf37b", + "links": { + "self": "http://example.com/identity/v3/roles/a62eb6" + }, + "name": "Member" + } + ], + "links": { + "next": null, + "previous": null, + "self": "http://example.com/identity/v3/users/ce9e07/OS-OAUTH1/access_tokens/6be26a/roles" + } +}