Repository navigation
v0.2.0 - Admin API Expansion & Documentation
✨ Highlights
Admin API Improvements
- System Stats: New endpoint
GET /api/admin/statsprovides a quick overview of total, healthy, and failing monitors. - Detailed Monitoring: Retrieve full configuration for any specific monitor via
GET /api/admin/monitors/:id. - Downtime History: Access historical downtime records programmatically with pagination support at
GET /api/admin/monitors/:id/downtimes.
Documentation
- API Docs: Updated API.md with complete documentation for the new admin endpoints.
- OpenAPI Spec: Manually updated openapi/route.ts to ensure the new endpoints appear correctly in the interactive
/api-docspage.
Tests - Automated Verification: Added a comprehensive Vitest test suite src/server/api/admin.test.ts to ensure API reliability.
Bug Fixes
- Docs Scrolling: Fixed an issue where the API documentation page was not scrollable on some viewports.