Skip to content

TaskManager API is a RESTful API that allows users to manage their tasks efficiently. This API supports creating, listing, updating, and deleting tasks.

Notifications You must be signed in to change notification settings

sametuca/taskmanager-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TaskManager API

Project Description

TaskManager API is a RESTful API that allows users to manage their tasks efficiently. This API supports creating, listing, updating, and deleting tasks.

Features

  • Create tasks
  • List tasks
  • Update tasks
  • Delete tasks

Prerequisites

  • .NET 8.0 (or compatible version)
  • SQL Server (or other supported databases)

Installation

  1. Clone the repository:

    git clone https://github.com/sametuca/taskmanager-api.git
    cd taskmanager-api
  2. Set up the database:

    Ensure your database connection is correctly configured in appsettings.json.

  3. Apply database migrations:

    dotnet ef database update
  4. Run the application:

    dotnet run

API Endpoints

Task Endpoints

Method Endpoint Description
GET /api/tasks Get all tasks
GET /api/tasks/{id} Get task by ID
POST /api/tasks Create a new task
PUT /api/tasks/{id} Update a task
DELETE /api/tasks/{id} Delete a task

Example Request

Create a Task

POST /api/tasks

Request Body:

{
  "title": "Sample Task",
  "description": "This is a sample task",
  "dueDate": "2023-12-31",
  "status": "Pending"
}

Running Tests

To run the unit tests:

dotnet test

Contribution

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

TaskManager API is a RESTful API that allows users to manage their tasks efficiently. This API supports creating, listing, updating, and deleting tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages