Skip to content

feat: backend scaffold (FastAPI app, /api/v1/health, /api/v1/echo, sessions) #17

@constk

Description

@constk

Problem

The harness needs a minimal Python service to exercise it: an empty src/ makes import-linter, mypy, and FastAPI test patterns unverifiable.

Proposed solution

Build src/api/main.py (FastAPI app, CORS middleware, lifespan), src/api/routes.py (GET /api/v1/health returning a HealthResponse Pydantic model; GET /api/v1/echo?msg=... returning the message wrapped in a StrictModel), src/api/sessions.py (in-memory session dict + helpers; portable pattern). One pytest using FastAPI TestClient for each endpoint.

Acceptance criteria

Priority rationale

Critical: without a working app, downstream tickets (observability, eval, frontend) have nothing to wire to.

Depends on

#2

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendPython + FastAPI backend scaffoldenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions