api documentation - earlwoo/Welp GitHub Wiki

API-Routes

This web app uses the following API routes to return data from the database and update the redux store.

Users

  • Sign Up

    • POST /users/signup
  • Log In

    • POST /session/login
  • Log Out

    • DELETE /session/logout
  • Get all users

    • `GET /users

Restaurants

  • GET /restaurants - Gets all the restaurants from the database

Reviews

  • GET /reviews - Gets all reviews for restaurant
  • POST /reviews - Posts a new review
  • PUT /reviews/:reviewId - Updates a specific review
  • DELETE /reviews - Deletes a review