Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 2.03 KB

File metadata and controls

67 lines (49 loc) · 2.03 KB

Task-Management-API

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.

Features

  • 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.

Getting Started

Prerequisites

  • Go (version 1.18+ recommended)

Installation

  1. Clone the repository:

    git clone https://github.com/b-isry/Task-Management-API.git
    cd Task-Management-API
  2. Install dependencies:

    go mod tidy
  3. 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.

API Endpoints

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.)

Example Task Object

{
  "id": 1,
  "title": "Buy groceries",
  "description": "Milk, Eggs, Bread",
  "priority": "High",
  "category": "Personal",
  "completed": false
}

Integrating with Frontends

You can use this API with any frontend (React, Angular, Vue, mobile, etc.) by making HTTP requests to the endpoints described above.