Implements fastAPI with specified entities, endpoints, HTTP methods, authentication, and authorization mechanisms in the project.
Dependencies and Setup: Adds requirements.txt with dependencies for fastAPI, uvicorn, SQLAlchemy, and Pydantic to set up the project environment.
Application Structure: Introduces main.py to initialize the fastAPI application, configure CORS middleware, and define a root route.
Database Models: Creates models.py defining SQLAlchemy models for users, tasks, profiles, workspaces, and auxiliary tables to structure the database.
API Endpoints: Implements CRUD operations for users, tasks, profiles, and workspaces in routes.py using appropriate HTTP methods and ensuring data validation with Pydantic models.
Authentication: Adds auth.py to handle JWT-based authentication and authorization, including password hashing, token generation, and user verification to secure API access.
Related to #10
Implements fastAPI with specified entities, endpoints, HTTP methods, authentication, and authorization mechanisms in the project.
requirements.txt
with dependencies for fastAPI, uvicorn, SQLAlchemy, and Pydantic to set up the project environment.main.py
to initialize the fastAPI application, configure CORS middleware, and define a root route.models.py
defining SQLAlchemy models for users, tasks, profiles, workspaces, and auxiliary tables to structure the database.routes.py
using appropriate HTTP methods and ensuring data validation with Pydantic models.auth.py
to handle JWT-based authentication and authorization, including password hashing, token generation, and user verification to secure API access.For more details, open the Copilot Workspace session.