Skip to content

codeherk/java-springboot-mongodb-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-springboot-mongodb-example

Java Spring Boot API with MongoDB example

Table of Contents

Overview

Technologies used:

  • Java: Object Oriented Programming Language
  • Spring Boot: Java-based web framework for developing microservices
  • MongoDB: NoSQL Database
  • Maven: a project management tool

Prerequisites

Getting Started

  • Clone repo
  • Run make start at the top level directory to build and run the API

Available Endpoints

Method Endpoint Description
GET /api/tasks Get all tasks (currently only available with genre parameter)
GET /api/tasks/{id} Get task by ID

Request Example

GET /api/movies

curl -i -H 'Accept: application/json' http://localhost:8080/api/movies?genre=Drama

TODO

  • Add additional endpoints
  • Add unit tests
  • Containerize API
  • Deploy with GitHub Actions
  • Add Swagger Doc

Contributing

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.

About

Java Spring Boot API with MongoDB example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published