This project is the final assignment for the Create REST APIs with Spring and Java course from Codecademy.
The Dining Review API is a RESTful web service that allows users to submit and review restaurants based on allergy-friendly criteria. The system enables users to rate restaurants based on peanut, egg, and dairy allergy-friendliness. An admin user is responsible for reviewing and approving submitted reviews.
- Users can submit dining reviews with optional scores for peanut, egg, and dairy allergies.
- Restaurants store the average scores for each allergy category and an overall score.
- Admins can approve or reject dining reviews.
id
(Long) - Unique identifiername
(String) - Restaurant nameaddress
(String) - LocationcuisineType
(String) - Type of cuisinepeanutScore
(Double) - Average peanut allergy scoreeggScore
(Double) - Average egg allergy scoredairyScore
(Double) - Average dairy allergy scoreoverallScore
(Double) - Overall average score
id
(Long) - Unique identifierdisplayName
(String) - Unique usernamecity
(String) - City of residencestate
(String) - State of residencezipCode
(Long) - Zip codeinterestedInPeanut
(Boolean) - Interest in peanut allergy ratingsinterestedInEgg
(Boolean) - Interest in egg allergy ratingsinterestedInDairy
(Boolean) - Interest in dairy allergy ratings
id
(Long) - Unique identifiersubmittedBy
(String) - User who submitted the reviewrestaurantId
(Long) - Reviewed restaurantpeanutScore
(Double) - Score (1-5) for peanut allergy safetyeggScore
(Double) - Score (1-5) for egg allergy safetydairyScore
(Double) - Score (1-5) for dairy allergy safetycommentary
(String) - Optional comments
accepted
(Boolean) - Indicates whether the review is accepted or rejected
- Java
- Spring Boot
- Spring Data JPA
- H2 Database (for local persistence)
- Lombok (for reducing boilerplate code)
- Clone the repository:
git clone https://github.com/Robson16/diningreview.git
- Navigate to the project directory:
cd diningreview
- Build and run the application:
mvn spring-boot:run
This project is licensed under the MIT License.
Feel free to contribute and enhance this project!