* remove everything v1 and make v2 default * move main v2 rewrites to book * move rewrites to book + other fixes
71 lines
1.7 KiB
YAML
71 lines
1.7 KiB
YAML
get:
|
|
operationId: GetUsers
|
|
summary: List Users
|
|
description: >-
|
|
Retrieve a list of users. The users can be filtered by fields such as `id`.
|
|
The users can also be sorted or paginated.
|
|
x-authenticated: true
|
|
parameters: []
|
|
security:
|
|
- api_token: []
|
|
- cookie_auth: []
|
|
- jwt_token: []
|
|
x-codeSamples:
|
|
- lang: Shell
|
|
label: cURL
|
|
source:
|
|
$ref: ../code_samples/Shell/admin_users/get.sh
|
|
tags:
|
|
- Users
|
|
responses:
|
|
'400':
|
|
$ref: ../components/responses/400_error.yaml
|
|
'401':
|
|
$ref: ../components/responses/unauthorized.yaml
|
|
'404':
|
|
$ref: ../components/responses/not_found_error.yaml
|
|
'409':
|
|
$ref: ../components/responses/invalid_state_error.yaml
|
|
'422':
|
|
$ref: ../components/responses/invalid_request_error.yaml
|
|
'500':
|
|
$ref: ../components/responses/500_error.yaml
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema: {}
|
|
post:
|
|
operationId: PostUsers
|
|
summary: Create User
|
|
description: Create a user.
|
|
x-authenticated: true
|
|
parameters: []
|
|
security:
|
|
- api_token: []
|
|
- cookie_auth: []
|
|
- jwt_token: []
|
|
x-codeSamples:
|
|
- lang: Shell
|
|
label: cURL
|
|
source:
|
|
$ref: ../code_samples/Shell/admin_users/post.sh
|
|
tags:
|
|
- Users
|
|
responses:
|
|
'400':
|
|
$ref: ../components/responses/400_error.yaml
|
|
'401':
|
|
$ref: ../components/responses/unauthorized.yaml
|
|
'404':
|
|
$ref: ../components/responses/not_found_error.yaml
|
|
'409':
|
|
$ref: ../components/responses/invalid_state_error.yaml
|
|
'422':
|
|
$ref: ../components/responses/invalid_request_error.yaml
|
|
'500':
|
|
$ref: ../components/responses/500_error.yaml
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema: {}
|