
- Set up project structure with app modules - Configure SQLite database connection - Set up Alembic for database migrations - Implement Item model with CRUD operations - Create API endpoints for items management - Add health check endpoint - Add API documentation - Add comprehensive README
18 lines
384 B
Python
18 lines
384 B
Python
"""
|
|
Configuration settings for the REST API Service.
|
|
"""
|
|
from pathlib import Path
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
"""Application settings"""
|
|
API_V1_STR: str = "/api/v1"
|
|
PROJECT_NAME: str = "REST API Service"
|
|
|
|
# Database
|
|
DB_DIR: Path = Path("/app/storage/db")
|
|
DB_FILENAME: str = "db.sqlite"
|
|
|
|
|
|
settings = Settings() |