Skip to content

Add api status badge and api ping#2

Merged
Nabal22 merged 4 commits into
mainfrom
api-status-check
Oct 17, 2025
Merged

Add api status badge and api ping#2
Nabal22 merged 4 commits into
mainfrom
api-status-check

Conversation

@Nabal22
Copy link
Copy Markdown
Owner

@Nabal22 Nabal22 commented Oct 17, 2025

No description provided.

@Nabal22 Nabal22 requested a review from Copilot October 17, 2025 07:44
Copy link
Copy Markdown

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 API health monitoring functionality to display the backend service status. The implementation includes a health check endpoint on the backend and corresponding frontend components to display the API status in real-time.

  • Added a Spring Boot health check controller that returns API status
  • Created a React component that periodically pings the API and displays status badges
  • Integrated the API status badge into the site header and home page

Reviewed Changes

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

Show a summary per file
File Description
rest-api/src/main/java/com/krma/agrimap/api/HealthCheckController.java New health check endpoint returning API status
rest-api/render.yaml Removed comment from region configuration
front/src/components/site-header.tsx Added API status badge to the header
front/src/components/api-status-badge.tsx New component for displaying and monitoring API status
front/src/app/page.tsx Added API status badge and renamed function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread front/src/components/api-status-badge.tsx Outdated
Comment thread front/src/app/page.tsx
Comment thread front/src/components/api-status-badge.tsx
Nabal22 and others added 2 commits October 17, 2025 09:46
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Nabal22 Nabal22 merged commit 638765d into main Oct 17, 2025
2 checks passed
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.

2 participants