An API for managing tasks and to-do lists. Built with Golang, this RESTful API allows you to create, update, delete, and organize tasks, with support for prioritization and categorization. Designed for easy integration with any frontend or client application.
- Task CRUD: Create, read, update, and delete tasks.
- Prioritization: Assign priorities to tasks.
- Categorization: Organize tasks into custom categories.
- RESTful Endpoints: Standard REST API design for easy integration.
- Extensible: Designed to be used with any frontend or client.
- Go (version 1.18+ recommended)
-
Clone the repository:
git clone https://github.com/b-isry/Task-Management-API.git cd Task-Management-API -
Install dependencies:
go mod tidy
-
Run the server:
go run main.go
The server should start on the default port (e.g.,
localhost:8080). You can configure the port by editing the configuration if provided.
| Method | Endpoint | Description |
|---|---|---|
| GET | /tasks |
List all tasks |
| POST | /tasks |
Create a new task |
| GET | /tasks/{id} |
Get a specific task |
| PUT | /tasks/{id} |
Update a task |
| DELETE | /tasks/{id} |
Delete a task |
| ... | ... | Additional endpoints as needed |
(Check the source code for full endpoint details and request/response formats.)
{
"id": 1,
"title": "Buy groceries",
"description": "Milk, Eggs, Bread",
"priority": "High",
"category": "Personal",
"completed": false
}You can use this API with any frontend (React, Angular, Vue, mobile, etc.) by making HTTP requests to the endpoints described above.