Skip to content

someshthakur90/taskManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Management Backend API

A REST API that manipulates entity of Type "Task" POJ0. The API performs CRUD operations on Task entity type.

Technologies and programming langs used

Java 17, mysql 8

Spring boot, Spring data Jpa, Spring Validate, Spring Security

Maven Build tool

Programming Principles used

Object Oriented Design

Exception Handling

Authentication and Validation

API EndPoints

runs on port : 8080

/getTask method : get retrieves all Tasks

/getTask/{id} method : get Retrieves one task based on id

/addTask method : post addd task

/deleteTask/{id} method : delete deletes task of id {id}

/updateTask/{id} method : put update isDone field, request param isDone : boolean(true) (http://localhost:8080/updateTask/1?isDone=true)

/updateTask/{id}/taskDescription method : put updates taskDescription FIeld, req param : taskDescription

/updateTask/{id}/taskDate method : put updates taskDate Field, req param : completionDate (updateTask/1/taskDate?completionDate:yyyy-mm-dd)

kindly look up the controller class in controllers package under any confusion regarding api endpoints.

How to set up and run

1.Download jar file from release section of the project

2.Run the Jar file on terminal

3.Run mysql server and create and use "mock" db

4,Fire the URLs from postman API

Use username : "somesh" && password : "somesh@123" for authentication(Basic Auth) header (verify by looking up Application.properties file

Another way of running the project is to clone the project and run in IDE(I used IntelliJ) with mysql server running

Any suggestion and improvements are Welcome

JSON Payload { "taskId" : int, "taskDescription" String, "completionDate":yy-mm-dd, "completed" : boolean }

taskId is auto incremented and isCompleted boolean value will accept default false on adding a payload it will cange when you use "/updateTask/{id} put method

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages