We have developed a simple express based Rest API which has the following features:
- Filter date by passing startDate & endDate
- Filter date by passing minCount & maxCount
To install the dependecies simply run
npm install
To Use the API do the following:
Start the node server
npm run dev
Make an API request on
Localhost
http://127.0.0.1:8080/api/records/all
Heroku
https://tejas-getir-api.herokuapp.com/api/records/all
Request Body
{
"startDate": "2016-01-26",
"endDate": "2018-02-02",
"minCount": 1,
"maxCount": 170
}
We have created test cases using the follwing:
- Jest
- Supertest
To run tests
npm run test
Current Test Case Result:
Current Test Coverage Result:
Tejas Srivastava