module
0.0.0-20240726042612-d217632a5c00
Repository: https://github.com/bekyrys/todo-list.git
Documentation: pkg.go.dev
# README
Service for compiling task lists
Introduction
The project was created for educational purposes and is an HTTP proxy server written in Golang. It accepts requests, sends them to the specified external services, and returns a response in JSON format.
How to install
- Clone the repository:
git clone https://github.com/Bekyrys/todo-list
cd todo-list
- Build and run using Docker:
make build
- Run the server:
make run
Deployed on RENDER:
Base URL
https://halyk-proxy-server-easy.onrender.com
Request Body:
POST /api/todo-list/tasks
{
"title": "Buy milk"
}
Response example:
{"id":"0ffcf33a-331e-4f67-be12-cc199490cef1","title":"Buy milk","activeAt":"19 July 17:04","completed":false}
Edit existing tasks:
PUT /api/todo-list/tasks
{
"title": "Buy 2 milk",
"activeAt": "20 July 13:30"
}
Response example:
{"id":"0ffcf33a-331e-4f67-be12-cc199490cef1","title":"Buy 2 milk","activeAt":"20 July 13:30","completed":false}
Marks task as done:
PUT /api/todo-list/tasks/{ID}/done
Response example:
{"id":"0ffcf33a-331e-4f67-be12-cc199490cef1","title":"Buy 2 milk","activeAt":"20 July 13:30","completed":true}
DELETE /api/todo-list/tasks/{id}
Response example:
{"message":"Task deleted"}
Get tasks by status:
GET /api/todo-list/tasks?status=active
or
GET /api/todo-list/tasks?status=done
Response example:
[{"id":"0ffcf33a-331e-4f67-be12-cc199490cef1","title":"Buy 2 milk","activeAt":"0000-07-20T13:30:00Z","done":true}]
# Packages
No description provided by the author