-
Notifications
You must be signed in to change notification settings - Fork 9
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/signupPOST /api/auth/loginGET /api/auth/logoutGET /api/auth/
- A logged in user may view their current AM and PM routines and add products to either or both routines.
GET /api/routinesPOST /api/routines
- A logged in user may view, add, edit, or delete a journal entry.
GET /api/entries/idPOST /api/entriesPUT /api/entries/idDELETE /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/productsPOST /api/productsPUT /api/products/idDELETE /api/products/id