Open BertoCruz opened 2 years ago
Description | URL | Method | Required Properties for Request | Sample Successful Response |
---|---|---|---|---|
Get all travelers | http://localhost:3001/api/v1/travelers | GET | none | object with travelers property containing an array of all travelers |
Get single traveler | http://localhost:3001/api/v1/travelers/ |
GET | none | object of single traveler’s info |
Get all trips | http://localhost:3001/api/v1/trips | GET | none | object with trips property containing an array of all trips |
Get all destinations | http://localhost:3001/api/v1/destinations | GET | none | object with destinations property containing an array of all destinations |
Add new trip | http://localhost:3001/api/v1/trips | POST | {id: |
{message: 'Trip with id |
Add new destination | http://localhost:3001/api/v1/destinations | POST | {id: |
{message: 'Destination with id |
Modify single trip | http://localhost:3001/api/v1/updateTrip | POST | {id: |
{message: 'Trip # |
Delete single trip | http://localhost:3001/api/v1/trips/ |
DELETE | none | Trip # has been deleted |
{
"Content-Type": "application/json"
}