Public
Documentation Settings

Natours

This is my First API, in this app we can create view, update and delete the tours utilizing the express, node.js and Mongo-db no-sql database.

Created by: Piyush Sultaniya with ❤️

Tours

You can get all Tours, single Tour, Delete Tour, Update or also Create Tour.

There are also some special endpoints for special requests

GETGet all tours

{{URL}}/api/v1/tours

Use this endpoint to get all tours.

PARAMS
duration[gte]

5

difficulty

easy

price[lt]

1500

sort

price,-ratingsAverage

Example Request
curl
curl --location -g '{{URL}}/api/v1/tours'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

GETGet a tour

{{URL}}/api/v1/tours/632c3b88ab02fa647cb2e1a0
Example Request
curl
curl --location -g '{{URL}}/api/v1/tours/632c3b88ab02fa647cb2e1a0'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

GETGet Top 5 Cheap Tours

{{URL}}/api/v1/tours/top-5-cheap
Example Request
curl
curl --location -g '{{URL}}/api/v1/tours/top-5-cheap'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers