aboutsummaryrefslogtreecommitdiffhomepage
path: root/openapi.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'openapi.yaml')
-rw-r--r--openapi.yaml37
1 files changed, 36 insertions, 1 deletions
diff --git a/openapi.yaml b/openapi.yaml
index 739f013..8e87938 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -154,9 +154,44 @@ paths:
example: "Forbidden operation"
required:
- message
+ /admin/users:
+ get:
+ summary: List all users
+ parameters:
+ - in: header
+ name: Authorization
+ schema:
+ type: string
+ required: true
+ responses:
+ '200':
+ description: List of users
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ users:
+ type: array
+ items:
+ $ref: '#/components/schemas/User'
+ required:
+ - users
+ '403':
+ description: Forbidden
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ message:
+ type: string
+ example: "Forbidden operation"
+ required:
+ - message
components:
schemas:
- JwtPayload:
+ User:
type: object
properties:
user_id: