-
Notifications
You must be signed in to change notification settings - Fork 2
API Endpoints
Jonny edited this page Mar 12, 2019
·
2 revisions
Our api is located on the route /api, not the root /, so keep that in mind. /login is really /api/login.
- Ping route to wake up the Heroku instance
- Login endpoint
- Input:
email,password - Response:
token,user_id,provider - Description: Logs a user in, and returns a boolean whether the user is a provider or not
- Registration endpoint
- Input:
email,password - Description: The server will hash your password and generate a user. Email tokens are commented out.
- Get user by ID
- Update user by ID
- Delete user by ID
- Verify user's email
- Submit a post
- Get all posts
- Delete a post