-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Description
Create a simple health check endpoint to verify that the API is running correctly. The endpoint should return a JSON response confirming the server status. This will help with monitoring and debugging by providing a quick way to check if the backend is operational.
Acceptance Criteria
- Create a new GET endpoint at
/
- The endpoint should return a 200 OK status code
- The response body should follow this structure:
{ "status_code": 200, "message": "Welcome to C-Sharp Backend Endpoint" }
Requirements
- Method:
GET
- URL:
/
- Headers:
application/json
Response
✅ Successful Response (200 OK)
{
"status_code": 200,
"message": "Welcome to C-Sharp Backend Endpoint"
}
❌ Error Response (500 Internal Server Error, if any issue occurs)
{
"status_code": 500,
"message": "Internal Server Error"
}
Metadata
Metadata
Assignees
Labels
No labels