✨ feat(server): add GET /api/v1/uptime endpoint #67
Reference in New Issue
Block a user
Delete Branch "vibe/batch2-task-b-uptime"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add new GET /api/v1/uptime endpoint that returns server start time and uptime duration in seconds. The endpoint follows the same pattern as handleHealth and handleInfo handlers, using the existing startedAt field from the Server struct. Response includes start_time in RFC3339 format and uptime_seconds as integer. Includes unit tests with httptest.NewRecorder().
Add new endpoint that returns server start time and uptime duration in seconds. The endpoint follows the same pattern as handleHealth and handleInfo handlers, using the existing startedAt field from the Server struct. Response format: { "start_time": "2026-05-05T19:30:00Z", "uptime_seconds": 1234 } Includes unit tests with httptest.NewRecorder() to verify JSON response structure and content type headers. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>