the middle of the idiots

This commit is contained in:
2025-10-24 16:29:40 -05:00
parent 6a58e19b10
commit 721301c779
2472 changed files with 237076 additions and 418 deletions

View File

@@ -6,9 +6,9 @@ from typing import List
from pydantic import BaseModel
from sqlalchemy.orm import Session
from ..database import SessionLocal
from ..models import JobPosting, User
from ..config.settings import settings
from ...database import SessionLocal
from ...models import JobPosting, User
from ...config.settings import settings
router = APIRouter()
@@ -47,6 +47,21 @@ class JobResponse(BaseModel):
class Config:
from_attributes = True
json_schema_extra = {
"example": {
"id": 1,
"title": "Software Engineer",
"description": "We are looking for a skilled software engineer...",
"requirements": "Bachelor's degree in Computer Science...",
"location": "New York, NY",
"salary_min": 8000000, # in cents
"salary_max": 12000000, # in cents
"is_active": True,
"is_remote": True,
"tenant_id": 1,
"created_by_user_id": 1
}
}
@router.get("/", response_model=List[JobResponse])
async def get_jobs(skip: int = 0, limit: int = 100, is_active: bool = True, db: Session = Depends(SessionLocal), request: Request = None):