https://github.com/ozlerhakan/mongodb-json-files/blob/master/datasets/restaurant.json
-
Write a script - to import the documents separated by newline into a table/collection named "restaurant"
-
Write a Rest API which accepts the below arguments and provides the results based on filters provided below.
-
Good naming conventions and programming practices should be followed.
A) Following filters should work for restaurant search should work:
Filter: typeOfFood=Thai
--> returns name:postcode of the all the matching restaurants with total count and pagination
Filter: postcode=8FY
--> returns name:type_of_food of all matching restaurants with total count and pagination
B) Update Only the Name of a restaurant by ID
API to update the name of the restaurant by ID
- Code has to be pushed to your own github public repository
- Code commits should have appropriate messages
- Use comments/Doc Line against each public Method
- Deployment steps or shell script/docker image should be provided.
- Code has to be modular, separating out at least DB access methods and API layer
- Basic tests covering core functionality have to be written.
- API documentation/Postman Collection for the REST Apis to be provided