Skip to content

Add backend API skeleton, schemas, and DB/test scaffolding#28

Draft
aztr0nutzs with Copilot wants to merge 2 commits into
mainfrom
copilot/implement-fastapi-backend
Draft

Add backend API skeleton, schemas, and DB/test scaffolding#28
aztr0nutzs with Copilot wants to merge 2 commits into
mainfrom
copilot/implement-fastapi-backend

Conversation

Copilot AI commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

This change establishes the FastAPI backend skeleton with required health/events/rec_centers endpoints, canonical schemas with example fixtures, and foundational DB/test tooling (SQLAlchemy/Alembic + pytest coverage). It also resolves the mobile CI dependency conflict in Flutter.

  • API surface + fixtures
    • Add /health, /events, /rec_centers endpoints wired to mock fixture data.
    • Add fixtures under backend/fixtures/ and docs/examples/.
  • Canonical schemas
    • Introduce Pydantic models (backend/schemas/*.py) and JSON schemas (docs/schemas/*.json) for events, rec centers, villages.
  • DB + migrations scaffolding
    • Add SQLAlchemy base + database.py and Alembic config/migrations skeleton.
  • Testing + coverage
    • Add pytest config and endpoint tests; enable coverage configuration.
  • Mobile CI unblock
    • Downgrade flutter_timezone to a compatible version.

Example endpoint shape:

@app.get("/health")
async def health() -> dict[str, str]:
    return {"status": "ok"}
Original prompt

This section details on the original issue you should resolve

<issue_title>Implement FastAPI Backend Skeleton</issue_title>
<issue_description>Description: Create a FastAPI backend application exposing basic endpoints:

GET /health — returns {"status":"ok"}

GET /events (mock data)

GET /rec_centers (mock data)

Include automatic docs (/docs via Swagger UI).
Use SQLAlchemy + Alembic for DB migrations.
Add pytest + coverage config.

Acceptance Criteria:

Running uvicorn backend.app:app starts successfully.

GET /health returns status ok.

Unit tests for endpoints pass.

CI job executes pytest and reports success.
</issue_description>

<agent_instructions>Confirm all tasks from issue #2 are complete, all tests pass (if not, FIX ALL errors first), close issue, and proceed with issue #3 effectively and thoroughly. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: aztr0nutzs <239917237+aztr0nutzs@users.noreply.github.com>
Copilot AI changed the title [WIP] Add FastAPI backend skeleton with basic endpoints Add backend API skeleton, schemas, and DB/test scaffolding Jan 20, 2026
Copilot AI requested a review from aztr0nutzs January 20, 2026 18:11
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.

Implement FastAPI Backend Skeleton

2 participants