Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager API

Description

A simple REST API built with FastAPI to manage tasks.

This project demonstrates basic backend development concepts such as:

  • CRUD operations
  • Request validation with Pydantic
  • Proper HTTP status codes

Features

  • Create task
  • List all tasks
  • Get task by ID
  • Update task
  • Delete task

Tech Stack

  • Python
  • FastAPI
  • Pydantic

How to Run

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the server:
uvicorn main:app --reload
  1. Open in browser:
http://127.0.0.1:8000/docs

Endpoints

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

Example Request (POST /tasks)

{
  "title": "Study FastAPI",
  "description": "Build a simple API",
  "completed": false
}

Status Codes

  • 201 → Created
  • 200 → Success
  • 204 → No Content
  • 404 → Not Found
  • 422 → Validation Error

About

REST API built with FastAPI to manage tasks, including validation, CRUD operations, and clean architecture.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages