-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into admin/users
- Loading branch information
Showing
9 changed files
with
265 additions
and
251 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,60 @@ | ||
delete: | ||
tags: | ||
- users | ||
summary: delete a single user account | ||
parameters: | ||
- in: path | ||
name: uid | ||
schema: | ||
type: integer | ||
required: true | ||
description: uid of the user to delete | ||
responses: | ||
'200': | ||
description: user account deleted | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
status: | ||
$ref: ../../components/schemas/Status.yaml#/Status | ||
response: | ||
type: object | ||
put: | ||
tags: | ||
- users | ||
summary: update a user account | ||
parameters: | ||
- in: path | ||
name: uid | ||
schema: | ||
type: integer | ||
required: true | ||
description: uid of the user to update | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas/UserRequest.yaml#/UserRequest | ||
responses: | ||
'200': | ||
description: user profile updated | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
status: | ||
$ref: ../../components/schemas/Status.yaml#/Status | ||
response: | ||
$ref: ../../components/schemas/UserObj.yaml#/UserObj | ||
'401': | ||
$ref: ../../components/responses/401.yaml#/401 | ||
'403': | ||
$ref: ../../components/responses/403.yaml#/403 | ||
'426': | ||
$ref: ../../components/responses/426.yaml#/426 | ||
'500': | ||
$ref: ../../components/responses/500.yaml#/500 |
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,59 @@ | ||
put: | ||
tags: | ||
- users | ||
summary: ban a user | ||
parameters: | ||
- in: path | ||
name: uid | ||
schema: | ||
type: integer | ||
required: true | ||
description: uid of the user to ban | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
until: | ||
type: number | ||
description: UNIX timestamp of the ban expiry | ||
example: 1585775608076 | ||
reason: | ||
type: string | ||
example: the reason for the ban | ||
responses: | ||
'200': | ||
description: successfully banned user | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
status: | ||
$ref: ../../../components/schemas/Status.yaml#/Status | ||
response: | ||
type: object | ||
delete: | ||
tags: | ||
- users | ||
summary: unbans a user | ||
parameters: | ||
- in: path | ||
name: uid | ||
schema: | ||
type: integer | ||
required: true | ||
description: uid of the user to unban | ||
responses: | ||
'200': | ||
description: successfully unbanned user | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
status: | ||
$ref: ../../../components/schemas/Status.yaml#/Status | ||
response: | ||
type: object |
Oops, something went wrong.