Create a BackEnd server using NodeJS/ExpressJS and MongoDB for creating Restful APIs for hotels.
- Create
- Update
- Edit
- Delete
- FindOne based on hote slug or id.
- findAll
name
: A part of hotel name matches using.includes
city
: A city name that will useExact Match
.price
: A range of price like100:500
or1000:2000
. It uses a range filter.date
: A range of date as10-12-2020:15-12-2020
. It uses a range filter.sort_field
: Field name to run sort against.sort_order
: Order of the sortingasc/desc
{
"hotels": [ // Array of hotels]
}
Onces done with the test create github repository and send link of that repository at farhan@strategisthub.com.
Note: Use github from start as would like to see your usage of git and also repo should have proper local setup documentation and also keep in mind urls should be following restful url patterns.