diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-17 19:46:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-17 19:46:43 +0900 |
| commit | 48a70e06f54d81cdc6b0c22c2dcce8426b86decf (patch) | |
| tree | 0e737357a174e564e182e41461f163af08356d23 /openapi | |
| parent | 34592a45efd9ceb0579c8eae1ba752da7f625950 (diff) | |
| download | phperkaigi-2025-albatross-48a70e06f54d81cdc6b0c22c2dcce8426b86decf.tar.gz phperkaigi-2025-albatross-48a70e06f54d81cdc6b0c22c2dcce8426b86decf.tar.zst phperkaigi-2025-albatross-48a70e06f54d81cdc6b0c22c2dcce8426b86decf.zip | |
feat(backend): add API definition of fortee user get
Diffstat (limited to 'openapi')
| -rw-r--r-- | openapi/fortee.yaml | 33 |
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 |
