Java Spring Boot API with MongoDB example
Technologies used:
- Java: Object Oriented Programming Language
- Spring Boot: Java-based web framework for developing microservices
- MongoDB: NoSQL Database
- Maven: a project management tool
- Install Java 17 (OpenJDK 17.0.2)
- via Chocolately for Windows
- via Homebrew for Mac
- Install Maven
- Clone repo
- Run
make start
at the top level directory to build and run the API
Method | Endpoint | Description |
---|---|---|
GET | /api/tasks |
Get all tasks (currently only available with genre parameter) |
GET | /api/tasks/{id} |
Get task by ID |
GET /api/movies
curl -i -H 'Accept: application/json' http://localhost:8080/api/movies?genre=Drama
- Add additional endpoints
- Add unit tests
- Containerize API
- Deploy with GitHub Actions
- Add Swagger Doc
I appreciate feedback and contribution to this repo! Feel free to create a PR with your changes. I plan to add additional things like a PR template, etc. to make the contribution process more formal.