-
Notifications
You must be signed in to change notification settings - Fork 8
API Documentation
Tran Le edited this page Jun 11, 2021
·
3 revisions
This web app uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.
- A user can sign up, log in, log out, or stay logged in.
POST /api/auth/signup
POST /api/auth/login
GET /api/auth/logout
GET /api/auth/
- A logged in user may view their current AM and PM routines and add products to either or both routines.
GET /api/routines
POST /api/routines
- A logged in user may view, add, edit, or delete a journal entry.
GET /api/entries/id
POST /api/entries
PUT /api/entries/id
DELETE /api/entries/id
- A logged in user may view and add products to their routines and they can also edit or delete a custom product.
GET /api/products
POST /api/products
PUT /api/products/id
DELETE /api/products/id