Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Student Task Manager REST API

A RESTful API built with Python and Flask for managing student tasks. Supports full CRUD operations with SQLite database storage.

Features

  • 5 REST API endpoints (GET, POST, PUT, DELETE)
  • Persistent SQLite database storage
  • JSON request and response handling
  • Error handling with proper HTTP status codes
  • Tested using Postman and PowerShell

Tech Stack

  • Python 3.14
  • Flask 3.1.3
  • SQLite
  • Werkzeug

Project Structure

  • main.py — main server file with all API endpoints
  • database.py — database connection and initialisation
  • tasks.db — generated locally when the application runs and excluded from Git

How to Run

1. Clone the Repository

git clone https://github.com/keerthy-gs/task-manager-api.git
cd task-manager-api

2. Install the Required Packages

pip install -r requirements.txt

3. Start the Flask Server

python main.py

The API will run at:

http://127.0.0.1:5000

API Endpoints

Method Endpoint Description
GET /tasks Get all tasks
GET /tasks/ Get one task
POST /tasks Create new task
PUT /tasks/ Update a task
DELETE /tasks/ Delete a task

Sample Request (POST)

{
  "title": "Complete DSA assignment",
  "description": "Solve 5 linked list problems"
}

Sample Response

{
  "message": "Task created successfully"
}

About

RESTful student task manager API built with Flask, SQLite, and Python, supporting full CRUD operations

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages