Skip to content

API Documentation

Tran Le edited this page Jun 11, 2021 · 3 revisions

API Routes

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.

Users

  • 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/

Routines

  • 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

Entries

  • 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

Products

  • 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
Clone this wiki locally