Skip to content

feat(api): standardize health response - #14

Merged
jzonthemtn merged 2 commits into
philterd:mainfrom
pollychen-lab:agent/standard-health-response
Sep 14, 2026
Merged

jzonthemtn merged 2 commits into
philterd:mainfrom
pollychen-lab:agent/standard-health-response

Conversation

@pollychen-lab

Copy link
Copy Markdown
Contributor

Summary

Standardizes GET /health to return status: "UP" and the build applicationVersion when storage is healthy, while preserving the 503 response for unreachable storage. The version is now passed from main.go into internal/api, with API tests and documentation updated.

Closes #13

@jzonthemtn

Copy link
Copy Markdown
Member

@pollychen-lab Thanks for the PR, and apologies for the delay. Are you able to resolve the merge conflicts?

@pollychen-lab

Copy link
Copy Markdown
Contributor Author

@pollychen-lab Thanks for the PR, and apologies for the delay. Are you able to resolve the merge conflicts?

on it @jzonthemtn

…-response

# Conflicts:
#	internal/api/api.go
#	internal/api/api_test.go
#	internal/api/trend_test.go
#	internal/dashboard/dashboard_test.go
#	main.go
@jzonthemtn
jzonthemtn merged commit 6d81fa8 into philterd:main Sep 14, 2026
2 checks passed
@pollychen-lab

Copy link
Copy Markdown
Contributor Author

@jzonthemtn thanks

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.

Return the standard health response from /health

2 participants