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/reservations
- accepted params:
- name (string)
- age (integer)
- email (string)
-
Add a New Trip:
- https://trektravel.herokuapp.com/trips/new
- accepted params:
- name (string)
- continent (string)
- about (string)
- category (string)
- weeks (integer)
- cost (float)