PurpleBook
auth
POSTFacebook login
https://purplebook-i3b.onrender.com/api/auth/facebook?access_token={{accessToken}}
PARAMS
access_token
Example Request
Facebook login
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
POSTsignup
https://purplebook-i3b.onrender.com/api/auth/signup
returns 201 with the user id
or 400 with errors array
Bodyformdata
firstName
lastName
email
password
profilePicture
Example Request
signup
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
POSTlogin
https://purplebook-i3b.onrender.com/api/auth/login
return 200 with user id, token, and would return isAdmin: true if the user is an admin
or 400 with errros array
Bodyurlencoded
email
password
Example Request
login
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
users
AUTHORIZATIONBearer Token
Token