Skip to content

sarawanakumar/todo-be

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-be

Java Springboot RESTful Service to manage todos

Endpoints


Create User Account

Sign up

POST /signup
{
	"name": "My Super User",
	"username": "mysuser",
	"password": "password"
}

All the below services need to be authenticated with above created user credentials. Use Basic Authentication and provide username & password in Postman

CRUD Todo

Test Service

GET /hello => "hello"

Create Todo

POST /todo
    {   
        "description": "Dummy Task",
        "priority": "High",
        "status": "Pending",
        "completionDate": "17-Apr-2020"
    }

Update Todo

PUT /todo/{id}
    {
        "description": "Real Task",
        "priority": "High",
        "status": "Completed",
        "completionDate": "16-Apr-2020"
    }

Delete Todo

DELETE /todo/{id}


Query Todo

GET /todo/{id} => Optional<Todo>
GET /todo
Query Params:
priority=[high|medium|low] &
status=[pending|completed] &
date=[DDMMYYYY] &
orderby_key=[priority|status|completionDate]

=> List<Todo>

Users API(only for Admin)**

List all Users

GET /users => List<User>

About

Springboot RESTful application to CRUD todos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages