Repository navigation
API Documentation
Edgar Ulloa edited this page Nov 15, 2022
·
23 revisions
- GET: Returns current user's information
- PUT: Updates a user's information
- DELETE: Deletes current user
- POST: Logs in user with valid credentials and returns current user's information
- POST: Creates a new user, logins in user, and returns current user's information
- GET: Return all listings
- POST: Create a new listing
- GET: Return all current user listings
- GET: Return a listing
- PUT: Update a listing
- DELETE: Delete a listing
- GET: Return all tours
- GET: Return all current user's tours
- POST: Create a new tour
- GET: Return a tour
- PUT: Update a tour
- DELETE: Delete a tour
- GET: Return all offers
- GET: Return all current user offers
- POST: Create a new offer
- PUT: Update an offer
- DELETE: Delete an offer
- GET: Return all favorites
- GET: Return all current user favorite listings
- POST: Creates a new favorite listing
- GET: Return a favorite listing
- DELETE: Delete a favorite listing
- GET: Return all images
- GET: Return all current user images
- POST: Creates a new listing image
- GET: Return an image
- DELETE: Delete an image