Update api docs with /api/me (#862)

* add /api/me route to the docs

* change wording
pull/855/head^2
Anton Podviaznikov 2021-10-05 15:40:03 -07:00 committed by GitHub
parent d272f32ee3
commit 4474e9dd74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

View File

@ -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.