-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
The route to you change the current user password | ||
--- | ||
parameters: | ||
- name: Authorization | ||
in: header | ||
required: true | ||
type: string | ||
description: The JWT token | ||
- name: user_id | ||
in: path | ||
required: true | ||
type: integer | ||
description: The user id | ||
definitions: | ||
Ban User: | ||
type: string | ||
description: message to confirm the user was made admin | ||
example: User 2 role has been changed to banned | ||
responses: | ||
200: | ||
description: The user data with that JWT token | ||
properties: | ||
changed: | ||
type: boolean | ||
description: True if the password was changed | ||
401: | ||
description: The JWT token is missing or invalid | ||
schema: | ||
$ref: '#/definitions/Missing Bearer Response' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
The route to you change the current user password | ||
--- | ||
parameters: | ||
- name: Authorization | ||
in: header | ||
required: true | ||
type: string | ||
description: The JWT token | ||
- name: user_id | ||
in: path | ||
required: true | ||
type: integer | ||
description: The user id | ||
definitions: | ||
Delete User: | ||
type: string | ||
description: message to confirm the user deletion | ||
example: User 2 deleted | ||
responses: | ||
200: | ||
description: The user data with that JWT token | ||
properties: | ||
changed: | ||
type: boolean | ||
description: True if the password was changed | ||
401: | ||
description: The JWT token is missing or invalid | ||
schema: | ||
$ref: '#/definitions/Missing Bearer Response' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
The route to you change the current user password | ||
--- | ||
parameters: | ||
- name: Authorization | ||
in: header | ||
required: true | ||
type: string | ||
description: The JWT token | ||
- name: user_id | ||
in: path | ||
required: true | ||
type: integer | ||
description: The user id | ||
definitions: | ||
Make User Admin: | ||
type: string | ||
description: message to confirm the user was made admin | ||
example: User 2 role has been changed to admin | ||
responses: | ||
200: | ||
description: The user data with that JWT token | ||
properties: | ||
changed: | ||
type: boolean | ||
description: True if the password was changed | ||
401: | ||
description: The JWT token is missing or invalid | ||
schema: | ||
$ref: '#/definitions/Missing Bearer Response' |