You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
}
The text was updated successfully, but these errors were encountered:
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
/
Requirements
GET
/
application/json
Response
✅ Successful Response (200 OK)
❌ Error Response (500 Internal Server Error, if any issue occurs)
The text was updated successfully, but these errors were encountered: