Skip to content

parasharcuraj/kpa-api

Repository files navigation

KPA Form Data API

FastAPI backend with authentication and form data management.

Tech Stack

  • FastAPI
  • PostgreSQL
  • SQLAlchemy
  • JWT Authentication

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Set environment variables in .env:
DATABASE_URL=postgresql://user:password@localhost:5432/kpa_db
SECRET_KEY=your-secret-key
  1. Run with Docker:
docker-compose up

Or run locally:

python main.py

API Endpoints

Auth:

  • POST /api/v1/auth/login
  • POST /api/v1/auth/register

Form Data (requires auth):

  • POST /api/v1/form/submit
  • GET /api/v1/form/list
  • GET /api/v1/form/{id}
  • PUT /api/v1/form/{id}
  • DELETE /api/v1/form/{id}

API docs available at /docs

About

RESTful API with JWT authentication, form management, and PostgreSQL — built with FastAPI & SQLAlchemy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors