UF02-1845-mongo
Subject
- Create a Spring API REST with all CRUD.
- Connect to a MONGO DB.
Model
Movie class and attributes. Lombok annotation has been used to create setters, getters and constructors. Document
and Id
annotation used to storage Data on DB.
Review class and attributes. Lombok annotation has been used to create setters, getters and constructors. Document
and id
annotation used to storage Data on DB.
Service
Service class with all the busines logic needed for CRUD operations for both classes.
Controller
Here is the controllers and all the end-points needed to perform CRUD operations for both classes.
Tree folder project structure
Here’s the structure of the project. Note that there’s a Index Controller to manage the home page.
Repository
Source code here GitHub