Skip to content

AsthaMishra-ash/flask-taskmanager-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flask Task Manager API

A simple RESTful API built using Flask that allows users to manage tasks.
The API supports creating, retrieving, updating, completing, and deleting tasks.

Live API

https://flask-taskmanager-api-1.onrender.com

Features

  • Create tasks
  • View all tasks
  • Update tasks
  • Mark tasks as completed
  • Delete tasks

Tech Stack

  • Python
  • Flask
  • SQLite
  • SQLAlchemy
  • Gunicorn

API Endpoints

1. Get All Tasks

GET /tasks

Returns all tasks stored in the database.

Example Response: [ { "id": 1, "title": "Finish project", "completed": false } ]


2. Create a New Task

POST /tasks

Example Request Body: { "title": "Prepare internship application" }

Example Response: { "message": "Task added" }


3. Update a Task

PUT /tasks/

Example Request Body: { "title": "Complete API project", "completed": true }

Example Response: { "message": "Task updated" }


4. Mark Task as Completed

PATCH /tasks//complete

Example Response: { "message": "Task marked as completed" }


5. Delete a Task

DELETE /tasks/

Example Response: { "message": "Task deleted" }

Project Structure

flask-taskmanager-api │ ├── app.py ├── requirements.txt ├── tasks.db └── README.md

Deployment

The API is deployed on Render.

Author

Astha Mishra

About

A backend REST API developed using Flask for managing tasks. The system implements CRUD operations and integrates SQLite using SQLAlchemy for persistent data storage. The project demonstrates API development, database modeling, and backend service design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages