Skip to content

AriGameS/API-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Task Manager API

A simple Flask REST API for managing tasks.

πŸš€ Quick Start

# Install Flask
pip install -r requirements.txt

# Run the app
python app.py

πŸ“‹ API Endpoints

  • GET /tasks - Get all tasks
  • POST /tasks - Create new task

πŸ“Š Usage Examples

Get All Tasks

curl http://localhost:5000/tasks

Create New Task

curl -X POST http://localhost:5000/tasks \
  -H "Content-Type: application/json" \
  -d '{"title": "Buy groceries", "description": "Milk, bread, eggs"}'

Response Example

{
  "message": "Task created successfully",
  "task": {
    "id": 1,
    "title": "Buy groceries",
    "description": "Milk, bread, eggs",
    "completed": false,
    "created_at": "2025-08-01 12:30:00"
  }
}

🐳 Docker

# Build image
docker build -t task-manager .

# Run container
docker run -p 5000:5000 task-manager

πŸ“ Project Files

  • app.py - Main Flask application (single file!)
  • requirements.txt - Dependencies
  • Dockerfile - Container setup
  • README.md - This documentation# TaskManagerAPI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published