Skip to content

feat: API hardening (Pydantic schemas, pagination, Alembic, OpenAPI)#1

Merged
Kwickos merged 2 commits into
developfrom
feat/api-hardening
Jun 8, 2026
Merged

feat: API hardening (Pydantic schemas, pagination, Alembic, OpenAPI)#1
Kwickos merged 2 commits into
developfrom
feat/api-hardening

Conversation

@Kwickos

@Kwickos Kwickos commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Phase 2 — hardens the REST API.

Added

  • Typed Pydantic response models (app/schemas/api.py) + generic Page pagination envelope.
  • limit/offset pagination on /matches, /games/{id}/events, /games/{id}/frames with total counts.
  • Async Alembic migrations with the initial schema (alembic/) — production source of truth (dev still uses create_all).
  • OpenAPI tags + richer API metadata (description, contact, license).
  • API endpoint tests (tests/test_api.py) + isolated test DB (tests/conftest.py).

Verified

  • ruff check/format clean · pytest 8/8 · alembic upgrade head/downgrade base OK (7 tables).

@Kwickos Kwickos merged commit b0892c5 into develop Jun 8, 2026
2 checks passed
@Kwickos Kwickos deleted the feat/api-hardening branch June 8, 2026 09:59
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.

1 participant