A simple RESTful API for managing tasks, built with Go and Gin.
- Create, read, update, and delete tasks
- In-memory storage
- API documentation in
docs/api_documentation.md
- Go 1.24+
- Clone the repository:
git clone <your-repo-url> cd task_manager_api_2
- Install dependencies:
go mod tidy
- Start the server:
go run main.go
- The API will be available at
http://localhost:8080/tasks
See docs/api_documentation.md for details on endpoints, request/response formats, and examples.
├── controllers/ # API endpoint handlers
├── data/ # In-memory data service
├── docs/ # Documentation
├── models/ # Data models
├── router/ # Route setup
├── main.go # Entry point
├── go.mod # Go module file
{
"id": 1,
"title": "Task Title",
"description": "Task Description",
"duedate": "2025-07-16T00:00:00Z",
"status": "pending"
}
MIT