Add OS-KSCRUD api-ref

Change-Id: Ibf837eb880ee1811bfc85464b213451ddaf94a0b
Closes-Bug: 1524153
This commit is contained in:
Boris Bobrov 2016-07-13 20:28:50 +03:00 committed by Steve Martinelli
parent 7923a46692
commit 8a56b19734
3 changed files with 39 additions and 0 deletions

View File

@ -8,3 +8,4 @@
.. include:: ksadm-admin.inc
.. include:: ksec2-admin.inc
.. include:: kscrud.inc

View File

@ -0,0 +1,26 @@
.. -*- rst -*-
===================
OS-KSCRUD extension
===================
Supports password changing for a user by themselves
Change user's own password
==========================
.. rest_method:: PATCH /v2.0/OS-KSCRUD/users/{userId}
Changes user's own password and returns the new token
Normal response codes: 200
Request
-------
.. rest_parameters:: parameters.yaml
- userId: userId
- user: user
- original_password: original_password
- password: new_password

View File

@ -133,6 +133,18 @@ name_3:
in: body
required: true
type: string
new_password:
description: |
User's new password
in: body
required: true
type: string
original_password:
description: |
User's old password
in: body
required: true
type: string
roles:
description: |
A ``roles`` object.