Skip to content

SI-1: Migrate health_check context to contract-first architecture #1939

Closed

Description

@josecelano

Subissue of EPIC #1938 — REST API Contract-First Migration

Problem

The health_check endpoint is defined in packages/axum-rest-api-server/src/v1/context/health_check/. Its DTOs (Status, Report) and response logic are defined locally in the Axum server package. Per the contract-first architecture defined in #1930, these should live in rest-api-protocol.

This is the simplest context to migrate — there are zero tracker dependencies.

Scope

  • Move Status and Report DTOs from Axum to rest-api-protocol/src/v1/resources/health_check.rs
  • Rewire Axum handler to return protocol DTOs
  • Remove local DTO definitions from Axum server
  • Verify no behavioural change

Checklist

  • Protocol DTOs created and exported
  • Local DTOs removed from Axum server
  • Handler uses protocol DTOs
  • Pre-commit checks pass
  • Pre-push checks pass

Activity

  1. self-assigned this
    on Jun 24, 2026
  2. added
    Code Cleanup / Refactoring
    - Developer -
    API
    on Jun 24, 2026
  3. added 2 commits that reference this issue on Jun 24, 2026
  4. josecelano commented on Jun 25, 2026

    @josecelano
    MemberAuthor

    Implemented via #1946

  5. added a commit that references this issue on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

- Developer -APICode Cleanup / Refactoringtask

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions