Skip to content

Comments

feat: Add /health endpoint for backend status (Fixes #29)#31

Open
abhayrajjais01 wants to merge 1 commit intoOSeMOSYS:masterfrom
abhayrajjais01:fix/issue-29-healthcheck
Open

feat: Add /health endpoint for backend status (Fixes #29)#31
abhayrajjais01 wants to merge 1 commit intoOSeMOSYS:masterfrom
abhayrajjais01:fix/issue-29-healthcheck

Conversation

@abhayrajjais01
Copy link

Description

This PR addresses Issue #29 by adding a lightweight /health endpoint to the Flask backend. This gives cloud platforms and external services a simple way to verify that the API is up and running.

What was changed

  • Added a new GET /health route in API/app.py.
  • The endpoint returns a JSON payload {"status": "ok"} with an HTTP 200 OK status code.

Verification

  • Started the Flask API locally.
  • Verified that a GET request to http://localhost:5002/health successfully returns the expected {"status": "ok"} JSON response.

Fixes #29

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.

Add a simple backend health check endpoint (/health)

1 participant