aboutsummaryrefslogtreecommitdiffhomepage
path: root/openapi/fortee.yaml
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-17 19:46:36 +0900
committernsfisis <nsfisis@gmail.com>2024-08-17 19:46:43 +0900
commit48a70e06f54d81cdc6b0c22c2dcce8426b86decf (patch)
tree0e737357a174e564e182e41461f163af08356d23 /openapi/fortee.yaml
parent34592a45efd9ceb0579c8eae1ba752da7f625950 (diff)
downloadiosdc-japan-2025-albatross-48a70e06f54d81cdc6b0c22c2dcce8426b86decf.tar.gz
iosdc-japan-2025-albatross-48a70e06f54d81cdc6b0c22c2dcce8426b86decf.tar.zst
iosdc-japan-2025-albatross-48a70e06f54d81cdc6b0c22c2dcce8426b86decf.zip
feat(backend): add API definition of fortee user get
Diffstat (limited to 'openapi/fortee.yaml')
-rw-r--r--openapi/fortee.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/openapi/fortee.yaml b/openapi/fortee.yaml
index 707a29b..9237954 100644
--- a/openapi/fortee.yaml
+++ b/openapi/fortee.yaml
@@ -44,3 +44,36 @@ paths:
- username
required:
- loggedIn
+ /api/user/view/{username}:
+ get:
+ operationId: getUser
+ summary: Get a user
+ parameters:
+ - in: path
+ name: username
+ schema:
+ type: string
+ required: true
+ responses:
+ '200':
+ description: User found
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ uuid:
+ type: string
+ example: "11111111-1111-1111-1111-111111111111"
+ username:
+ type: string
+ example: "john"
+ avatar_url:
+ type: string
+ example: "/files/_user/11111111-1111-1111-1111-111111111111.jpg"
+ required:
+ - uuid
+ - username
+ - avatar_url
+ '404':
+ description: User not found