Update api docs with /api/me (#862)
* add /api/me route to the docs * change wording
This commit is contained in:
parent
d272f32ee3
commit
4474e9dd74
1 changed files with 34 additions and 0 deletions
|
@ -807,6 +807,40 @@ paths:
|
||||||
properties:
|
properties:
|
||||||
message:
|
message:
|
||||||
type: string
|
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:
|
/api/user/membership:
|
||||||
get:
|
get:
|
||||||
description: Get a list of the teams the user has joined.
|
description: Get a list of the teams the user has joined.
|
||||||
|
|
Loading…
Reference in a new issue