aboutsummaryrefslogtreecommitdiffhomepage
path: root/openapi.yaml
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-31 01:49:34 +0900
committernsfisis <nsfisis@gmail.com>2024-07-31 01:49:34 +0900
commit7a06def8085b432994dc054037183795e7ec25a0 (patch)
tree95456a82897787bac87c350dbc65cad6f35e4ebd /openapi.yaml
parent19a75493f5897685cb36c66c7bb3d31ea6a6bd2d (diff)
parent5bcffc6a83021b2bcb06b8c6f622a1d623fc753e (diff)
downloadphperkaigi-2025-albatross-7a06def8085b432994dc054037183795e7ec25a0.tar.gz
phperkaigi-2025-albatross-7a06def8085b432994dc054037183795e7ec25a0.tar.zst
phperkaigi-2025-albatross-7a06def8085b432994dc054037183795e7ec25a0.zip
Merge branch 'admin'
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: