Router | use | required body | Required Header |
---|---|---|---|
/api/user/sign-up | to sign up an user |
|
none |
/api/user/sign-in | to sign in an user |
|
none |
/api/user/find | to find a user | userName (r) | authorization (r) |
/api/chat/send | to send message to someone |
|
authorization (r) |
/api/chat/get-all | to fetch whole inbox | none | authorization (r) |
/api/chat/get-user-chat | to get all messages from a single user | otherPersonId (r) | authorization (r) |