Steps of starting Backend
- Run
npm run start
on terminal
- You will get
URL
like this http://localhost:7879
server running on port number 7879
getUrl :- http://localhost:7879/data/filter
Data can able to filter , sorted, paginated with this methods
- We can use filter, sort, pagination, search together
http://localhost:7879/data/filter?gender=&page=1&limit=60&name=f&ageL=80&ageR=70&country=Ireland&sortName=desc
- Filter by Age
- range ageL : above that limit
- range ageR : below that limit
- both should use together
- Filter by Country
- Filter by Gender
gender= male/female/""
- Sort Data base on Nama
- Ascending order (asc)
- Descending order (desc)
Pagination
- page (1 by default)
- limit (10 by default)
- Prev Button
- Next Button
- Land any Page directly by clicking on particular page Number
- Search any user by typing character in query
- Adding data done with this api
- Bulk Data added in the data base in the range of 50 to 100 every time data added it give diff. data length in the range of 50 to 100.