Skip to content

Initial commit: Set up basic FastAPI structure and /jobs skeleton#7

Merged
Trosper3 merged 1 commit intomainfrom
week1-member1-setup
Mar 19, 2026
Merged

Initial commit: Set up basic FastAPI structure and /jobs skeleton#7
Trosper3 merged 1 commit intomainfrom
week1-member1-setup

Conversation

@jerrya-code
Copy link
Copy Markdown
Collaborator

This pull request introduces the initial FastAPI application setup for a Job Search API, including the creation and registration of a jobs router. The changes establish the foundational structure for handling job-related endpoints and provide a basic root endpoint for the API.

API initialization and routing:

  • Created the main FastAPI application in app/main.py with metadata and a root endpoint returning a welcome message.
  • Added a jobs router in app/modules/jobs/routes.py with a skeleton /jobs GET endpoint that accepts a query parameter and returns a placeholder response.
  • Registered the jobs router in the main application under the /jobs prefix and with the "jobs" tag.

Copilot AI review requested due to automatic review settings March 19, 2026 04:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Introduces the initial FastAPI app scaffold for a Job Search API, including a root endpoint and a placeholder /jobs route to establish routing/module structure.

Changes:

  • Added app/main.py FastAPI application with a root (/) endpoint and registered the jobs router under /jobs.
  • Added a jobs module router with a skeleton GET endpoint that accepts a query parameter.
  • Added initial dependency and ignore-file scaffolding (requirements.txt, .gitignore) and package __init__.py markers.

Reviewed changes

Copilot reviewed 2 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
requirements.txt Adds pinned runtime dependency list for the API stack.
.gitignore Adds basic Python/venv ignores and ignores uv.lock.
app/main.py Creates the FastAPI app, registers the jobs router, and adds / endpoint.
app/modules/jobs/routes.py Adds initial /jobs GET skeleton endpoint and router definition.
app/modules/init.py Marks modules as a Python package.
app/modules/jobs/init.py Marks jobs as a Python package.
app/modules/health/init.py Marks health as a Python package.
app/modules/analyze/init.py Marks analyze as a Python package.
app/modules/stats/init.py Marks stats as a Python package.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Skeleton route for fetching jobs.
Later, this will call the Adzuna Job Search API."""

return {"message": f"Yay! Jobs endpoint is working", "query": q}
from fastapi import FastAPI
from app.modules.jobs.routes import router as jobs_router

app = FastAPI(title = "Job Search API",
version="1.0.0")

# Include the jobs router
app.include_router(jobs_router, prefix="/jobs", tags=["jobs"])
Comment on lines +11 to +13
@app.get("/")
async def root():
return {"message": "Welcome to the Job Search API!"} No newline at end of file
@@ -0,0 +1,13 @@
from fastapi import APIRouter

router = APIRouter (
Copy link
Copy Markdown
Owner

@Trosper3 Trosper3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice start man. I think this is going be good when we flush it out. We will add unit tests and/or integration tests later for coverage, so ignore the Copilot for now.

@Trosper3 Trosper3 merged commit da22e02 into main Mar 19, 2026
4 checks passed
@Trosper3 Trosper3 deleted the week1-member1-setup branch March 19, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants