Skip to content

Commit

Permalink
[CLOUDTRUST-1564] Update swagger for reset password
Browse files Browse the repository at this point in the history
  • Loading branch information
bsoniam authored and lagess committed Aug 29, 2019
1 parent 6c6f2ef commit 4824c38
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions api/management/swagger-api_management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,11 @@ paths:
put:
tags:
- Users
summary: Set up a new password for the user. The value of the password is optional.
If no password is provided, a password is generated and returned in the response.
summary: >
Set up a new password for the user. The value of the password is optional.
If no password is provided (i.e. the body is an empty JSON), a password is generated and returned in the response.
The generated password is a string that either follows the password policy imposed by the realm or has length 8 and contains letters (upper case, lower case) and numbers.
The password does not contain the following ambiguous characters - l, i,1, 0, o, O, 5, s, S.
parameters:
- name: realm
in: path
Expand All @@ -415,15 +418,13 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Password'
allowEmptyValue: true
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Password'
description: The newly generated password, if no value was provided.
content:
text/plain:
schema:
type: string
/realms/{realm}/users/{userID}/send-verify-email:
put:
tags:
Expand Down Expand Up @@ -819,6 +820,7 @@ components:
type: string
createdTimestamp:
type: integer
format: int64
groups:
type: array
items:
Expand Down Expand Up @@ -908,4 +910,4 @@ components:
openIdConnectUrl: http://toto.com/.well-known/openid-configuration
security:
- openId:
- todo
- todo

0 comments on commit 4824c38

Please sign in to comment.