8000 Add /health API by lmangani · Pull Request #68 · gigapi/gigapi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add /health API #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 21, 2025
Merged

Add /health API #68

merged 6 commits into from
Apr 21, 2025

Conversation

lmangani
Copy link
Contributor

Simple /health endpoint to pass client healthchecks

lmangani and others added 5 commits April 21, 2025 20:59
Simple /health endpoint to pass client healthchecks
Respond with 204 to Insert requests
@lmangani lmangani requested a review from Copilot April 21, 2025 19:20
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a simple /health API endpoint to support client health checks and updates the response behavior for the insert_into handler.

  • Added a GET /health route that returns an HTTP 200 with an "OK" message.
  • Updated the InsertIntoHandler to return HTTP 204 with no body instead of HTTP 200 with an "Ok" message.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
merge/merge.go Added import and route registration for the new /health endpoint
merge/handlers/insert_into.go Changed response code to HTTP 204 and removed the response body message

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lmangani lmangani merged commit 8220782 into main Apr 21, 2025
3 checks passed
@lmangani lmangani deleted the healthcheck-pass branch April 21, 2025 20:53
@gigapi gigapi deleted a comment from Copilot AI Apr 22, 2025
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
0