From 4474e9dd748f658a175cda76140c7682d4afdb0b Mon Sep 17 00:00:00 2001 From: Anton Podviaznikov Date: Tue, 5 Oct 2021 15:40:03 -0700 Subject: [PATCH] Update api docs with /api/me (#862) * add /api/me route to the docs * change wording --- calendso.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/calendso.yaml b/calendso.yaml index e26c6799..9d942b30 100644 --- a/calendso.yaml +++ b/calendso.yaml @@ -807,6 +807,40 @@ paths: properties: message: type: string + /api/me: + get: + description: Gets current user's profile. + summary: Gets current user's profile. + tags: + - User + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + properties: + message: + type: string + "401": + description: Unauthorized + content: + application/json: + schema: + type: object + properties: + message: + type: string + "500": + description: Internal Server Error + content: + application/json: + schema: + type: object + properties: + message: + type: string /api/user/membership: get: description: Get a list of the teams the user has joined.