Skip to content

Backend Routes

grantpaulson6 edited this page Apr 30, 2019 · 5 revisions

HTML

  • GET /

API Endpoints

Users

  • GET /api/users
    • user info, reviews of user info
  • POST /api/users
    • create new user

Session

  • POST /api/session
    • login
  • DELETE /api/session
    • logout

Listings

  • GET /api/listings
    • sent with filters slice of state (location, date, guests price), returns listings info
  • GET /api/listings/:listingsId
    • returns all info on listing, all of the listing's bookings, and all of the listing's reviews

Clone this wiki locally