From 2385e1832fa0acc98fd285453701d5e829670955 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 31 Jul 2024 01:35:29 +0900 Subject: feat: implement /admin/users page --- openapi.yaml | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'openapi.yaml') 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: -- cgit v1.2.3-70-g09d2