API Routes - a2thelee/friday-drinks-capstone GitHub Wiki
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/:id
GET
This route will return the current user's information along with favorite drinks
/api/drinks
GET /api/drinks
This route will return a list of all drinksPOST /api/drinks
This route will create a drink with text and AWS (if user is logged in)GET /api/drinks/alcoholic
This route will return a list of all drinks that are classified as alcoholicGET /api/drinks/nonalcoholic
This route will return a list of all drinks that are classified as non-alcoholicGET /api/drinks/favorites
This woute will return a "top-ten" list of drinks site wide arranged by number of favorites
/api/drinks/:id
GET /api/drinks/:id
This route will return a single drink card with all relevant informationPATCH /api/drinks/:id
This route will allow a user to edit a drink (that they've created)DELETE /api/drinks/:id
This route will allow a user to delete a drink (that they've created)