Skip to content

kuntapong/spring-boot-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-todo

A Spring-boot REST example app

MongoDB

The application uses MongoDB as a database. You should install MongoDB on your local machine or change the configuration in application.yml to your MongoDB server. https://docs.mongodb.com/manual/installation/

How to run

  • Maven install
./mvnw clean install
  • Run Application
./mvnw spring-boot:run

Run Unit Tests

./mvnw test

Endpoints

  • Find Todo list by title and due date.
    http://localhost:8080/api/v1/todos/?title=test&dueDate=1519011642626
    
  • Create new Todo
    http://localhost:8080/api/v1/todos/
    {
      "title": "test1",
      "description": "desc 1",
      "dueDate": 1519011642626
    }
    
  • Edit Todo
    http://localhost:8080/api/v1/todos/5a86775115e8a65188ae5354
    {
      "title": "test1",
      "description": "desc 1",
      "dueDate": 1519011642626
    }
    
  • Delete Todo
    http://localhost:8080/api/v1/todos/5a86775115e8a65188ae5354
    

About

A Spring-boot REST example app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published