API Routes - crespohector/Inspired GitHub Wiki
API-Routes
Users
-
Sign Up
POST /users/sign-up
-
Log In
POST /users/login
Quotes
GET /quotes- Gets all quotesGET /quotes/user/:userId- Gets all quotes based on user idPOST /quotes/user/:userId- Posts a new quotePUT /quotes/:quotesId- Updates a specific quoteDELETE /quotes/:quotesId- Deletes a quote
Collections
GET /collections/:userId- Gets all collections by user idPOST /collections/:userId- Post a new collectionPUT /collections/:collectionsId/:userId- Update a specific collectionDELETE /collections/:collectionsId/:userId- Delete a specific collection
Collection_Quote
GET /collections/:collectionsId/quotes- Gets all quotes from a collectionPOST /collections/:collectionsId/quotes- Add a quote to a collectionDELETE /collections/:collectionsId/quotes- Delete a quote from a collection