Skip to content

Add API health endpoint and routing config validation - #11

Merged
SpencerLiang0114 merged 2 commits into
SpencerLiang0114:mainfrom
victory-c:api-health-checks
Sep 19, 2026
Merged

SpencerLiang0114 merged 2 commits into
SpencerLiang0114:mainfrom
victory-c:api-health-checks

Conversation

@victory-c

Copy link
Copy Markdown
Contributor

Summary

  • Expose Actuator health (/actuator/health) and a DB-backed GET /health for Compose/readiness probes.
  • Validate routecraft.routing settings at startup (engine java|rust, non-blank URL, budget > 0).
  • Wire Compose API healthcheck and depends_on for a healthy engine; install curl in the API image for the probe.

Test plan

  • ./mvnw -Dtest=RoutingPropertiesTest test in services/routecraft-api
  • docker compose up --build and curl -i http://localhost:18080/health → 200 when Postgres is up
  • Confirm API waits on engine health before becoming healthy

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings September 17, 2026 07:20
@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

@victory-c is attempting to deploy a commit to the spencerliang0114's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
routecraft Ready Ready Preview Sep 19, 2026 6:48pm UTC

# Conflicts:
#	services/routecraft-api/README.md
@SpencerLiang0114
SpencerLiang0114 merged commit c373eb3 into SpencerLiang0114:main Sep 19, 2026
2 of 3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 6d6083e2 Deployed Sep 19, 2026 by vercel[bot]
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