Truefit is in the midst of building a mobile application that will let restaurant patrons rate the restaurant in which they are eating. As part of the build, we need to develop an API that will accept and store the ratings and other sundry data.
For this project, we would like you to build this api. Feel free to add your own twists and ideas to what type of data we should collect and return, but at a minimum your API should be able to:
- Create a user
- Create a restaurant
- Create a review for a restaurant
- Get of a list of reviews by user
- Get of a list of reviews by restaurant
- Get a list of restaurants by city
- Delete a review
- Block a user from posting a review
Please use whatever technology and techniques you feel are applicable to solve the problem. We suggest that you approach this exercise as if this code was part of a larger system. The end result should be representative of your abilities and style.
Please fork this repository. When you have completed your solution, please issue a pull request to notify us that you are ready.
Have fun.
Here are a couple of thoughts about the domain that could influence your response:
- We are building a mobile application independent of your development, what might be the best way to communicate to other developer how to user your API?
- After you turn your code over for the API, how might you help ensure future developers can feel confident updating it?