Update docs

This commit is contained in:
Hubert Van De Walle 2020-04-23 00:41:38 +02:00
parent acda25d410
commit 56b05a7131
2 changed files with 42 additions and 4 deletions

View File

@ -45,4 +45,20 @@ Authenticate one user to access protected routing.
+ Attributes (Token)
+ Response 401 (application/json)
+ Attributes (InvalidCredentials)
+ Attributes (InvalidCredentials)
## Get User Info [/user/me]
Receive the username and email from the currently logged in user
### Get User Info [GET]
+ Request (application/json)
+ Headers
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
+ Response 200 (application/json)
+ Attributes
+ user: (object)
+ username: Jean (string)
+ email: abc@def.ghi

File diff suppressed because one or more lines are too long