Merge "Add OS-KSCRUD api-ref"

This commit is contained in:
Jenkins 2016-07-14 07:49:11 +00:00 committed by Gerrit Code Review
commit 7d96826021
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.