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