Trip API™
-
Retrieve list of all Trips: https://trektravel.herokuapp.com/trips
-
Retrieve list of all trips by continent: https://trektravel.herokuapp.com/trips/continent?query=Asia
-
Retrieve list of all trips by max amount of weeks: https://trektravel.herokuapp.com/trips/weeks?query=3
-
Retrieve list of all trips by max budget: https://trektravel.herokuapp.com/trips/budget?query=5000
- budget is in dollar amount, above represents $5,000
-
Retrieve Data on Single Trip From ID: https://trektravel.herokuapp.com/trips/1
-
Retrieve all reservations of a Trip: https://trektravel.herokuapp.com/trips/1/reservations
-
Reserve a Spot on a Trip:
- https://trektravel.herokuapp.com/trips/1/reserve
- required params: name, age, email
-
Add a New Trip:
- https://trektravel.herokuapp.com/trips/new
- required params: name, destination, continent, about, category, weeks, cost, available, expires