https://github.com/shaikrasheed99/kotlin-springboot-todo-crud
TODO crud application using Springboot in Kotlin.
https://github.com/shaikrasheed99/kotlin-springboot-todo-crud
kotlin kotlin-springboot springboot springboot-kotlin-java todo todo-app
Last synced: 3 months ago
JSON representation
TODO crud application using Springboot in Kotlin.
- Host: GitHub
- URL: https://github.com/shaikrasheed99/kotlin-springboot-todo-crud
- Owner: shaikrasheed99
- License: mit
- Created: 2023-11-21T17:34:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-22T05:16:01.000Z (almost 2 years ago)
- Last Synced: 2025-01-13T19:38:56.722Z (9 months ago)
- Topics: kotlin, kotlin-springboot, springboot, springboot-kotlin-java, todo, todo-app
- Language: Kotlin
- Homepage:
- Size: 91.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot TODO CRUD in Kotlin
## Gradle based spring boot application which provide APIs to create, read, update and delete the TODOs using test driven development.
## Features of the Application
- Create todo
- Read todo
- Read todos by Priority
- Read todos by Status
- Update todo
- Delete todo## API - Create a Todo
* Request
```
POST /todos
Host: localhost:8080
Content-Type: application/json
{
"description": "Sleep",
"status": "pending",
"priority": "high"
}
```
* Response
```
{
"status": "SUCCESS",
"code": "OK",
"message": "Todo has created successfully",
"data": {
"id": 1,
"description": "Sleep",
"status": "pending",
"priority": "high"
}
}
```## API - Get all Todos
* Request
```
GET /todos
Host: localhost:8080
```
* Response
```
{
"status": "SUCCESS",
"code": "OK",
"message": "Successfully fetched all Todos details",
"data": [
{
"id": 1,
"description": "Sleep",
"status": "pending",
"priority": "high"
}
]
}
```## API - Get Todo details by Todo id
* Request
```
GET /todos/{1}
Host: localhost:8080
```
* Response
```
{
"status": "SUCCESS",
"code": "OK",
"message": "Successfully fetched Todo details by id",
"data": {
"id": 1,
"description": "Sleep",
"status": "pending",
"priority": "high"
}
}
```## API - Get Todos by Priority
* Request
```
GET /todos/priority/{"high"}
Host: localhost:8080
```
* Response
```
{
"status": "SUCCESS",
"code": "OK",
"message": "Successfully fetched all Todos details",
"data": [
{
"id": 1,
"description": "Sleep",
"status": "pending",
"priority": "high"
}
]
}
```## API - Get Todos by Status
* Request
```
GET /todos/status/{"pending"}
Host: localhost:8080
```
* Response
```
{
"status": "SUCCESS",
"code": "OK",
"message": "Successfully fetched all Todos details",
"data": [
{
"id": 1,
"description": "Sleep",
"status": "pending",
"priority": "high"
}
]
}
```## API - Update Todo details
* Request
```
PUT /todos/{1}
Host: localhost:8080
Content-Type: application/json
{
"status": "started"
}
```
* Response
```
{
"status": "SUCCESS",
"code": "OK",
"message": "Todo has updated successfully",
"data": {
"id": 1,
"description": "Sleep",
"status": "started",
"priority": "high"
}
}
```## API - Delete a Todo by Todo id
* Request
```
DELETE /todos/{1}
Host: localhost:8080
```
* Response
```
{
"status": "SUCCESS",
"code": "OK",
"message": "Todo has deleted successfully",
"data": {}
}
```