Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.27 KB

apis.rest

File metadata and controls

41 lines (35 loc) · 1.27 KB

@base_url= http://localhost:3000/api/v1 @tourId = 61013b4cf59d713618cb1b2e

### GET {{base_url}}/tours HTTP/1.1

### GET {{base_url}}/tours/{{tourId}} HTTP/1.1

### GET {{base_url}}/tours/tour-stats HTTP/1.1

### GET {{base_url}}/tours/monthly-plan/2021 HTTP/1.1

### POST {{base_url}}/tours HTTP/1.1 Content-Type: application/json

{

"name": "The Forest Hiker", "duration": 5, "maxGroupSize": 25, "difficulty": "easy", "ratingsAverage": 4.7, "ratingsQuantity": 37, "price": 397, "summary": "Breathtaking hike through the Canadian Banff National Park", "description": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", "imageCover": "tour-1-cover.jpg", "images": [

"tour-1-1.jpg", "tour-1-2.jpg", "tour-1-3.jpg"

], "startDates": [

"2021-04-25,10:00", "2021-07-20,10:00", "2021-10-05,10:00"

]

}