Skip to content

strategisthub/node-screening-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Hotels Search APIs:

Create a BackEnd server using NodeJS/ExpressJS and MongoDB for creating Restful APIs for hotels.

APIs to create for hotels:

  • Create
  • Update
  • Edit
  • Delete
  • FindOne based on hote slug or id.
  • findAll

findAll API should accept following query paramters to apply as filters.

Query Params:

  • name: A part of hotel name matches using .includes
  • city: A city name that will use Exact Match.
  • price: A range of price like 100:500 or 1000:2000. It uses a range filter.
  • date: A range of date as 10-12-2020:15-12-2020. It uses a range filter.
  • sort_field: Field name to run sort against.
  • sort_order: Order of the sorting asc/desc

Expected Response find API:

 {
   "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.

About

NodeJS Interview Initial Screening Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published