Skip to content

Database Schema and Backend Routes

Amanda Vien edited this page Nov 7, 2022 · 3 revisions

Database Schema

slate-dbdiagram

Backend Routes

Users

GET /api/users

  • Returns the information of all the users.

POST /api/auth/signup

  • Signs up a new user.

POST /api/auth/login

  • Logs in a user.

DELETE /api/auth

  • Logs out a user.

Designs

GET /api/designs

  • Returns the information of all the designs created by the logged in user.

GET /api/designs/:design_id

  • Returns the information the specified design.

POST /api/designs

  • Creates a new design.

PUT /api/designs/:design_id

  • Edits the specified design.

DELETE /api/designs/:design_id

  • Deletes the specified design.

Brands

GET /api/brand

  • Returns the information of all the brands created by the logged in user.

GET /api/brand/:brand_id

  • Returns the information the specified brand.

POST /api/brand

  • Creates a new brand.

PUT /api/brand/:brand_id

  • Edits the specified brand.

DELETE /api/brand/:brand_id

  • Deletes the specified brand.
Clone this wiki locally