hrplatformbackend-d8c5zs/openapi_schema.py
Automated Action 27c9268a6a Implement HR platform backend with FastAPI and SQLite
- Set up project structure with FastAPI framework
- Create database models for users, employees, departments, and job titles
- Implement JWT authentication and authorization system
- Set up SQLite database with SQLAlchemy ORM
- Add Alembic migrations for database versioning
- Create CRUD API endpoints for employee management
- Implement category-based search functionality
- Add OpenAPI documentation and health check endpoint
- Update README with comprehensive setup and usage instructions
2025-06-03 01:18:41 +00:00

11 lines
235 B
Python

import json
from main import app
# Generate the OpenAPI schema
schema = app.openapi()
# Write to file
with open("openapi.json", "w") as f:
json.dump(schema, f, indent=2)
print("OpenAPI schema has been generated at openapi.json")