Skip to content

v0.2.0 - Admin API Expansion & Documentation

Latest

Choose a tag to compare

@LemonMantis5571 LemonMantis5571 released this 29 Jan 06:12
· 1 commit to main since this release

v0.2.0 - Admin API Expansion & Documentation

✨ Highlights

Admin API Improvements

  1. System Stats: New endpoint GET /api/admin/stats provides a quick overview of total, healthy, and failing monitors.
  2. Detailed Monitoring: Retrieve full configuration for any specific monitor via GET /api/admin/monitors/:id.
  3. Downtime History: Access historical downtime records programmatically with pagination support at GET /api/admin/monitors/:id/downtimes.

Documentation

  1. API Docs: Updated API.md with complete documentation for the new admin endpoints.
  2. OpenAPI Spec: Manually updated openapi/route.ts to ensure the new endpoints appear correctly in the interactive /api-docs page.
    Tests
  3. Automated Verification: Added a comprehensive Vitest test suite src/server/api/admin.test.ts to ensure API reliability.

Bug Fixes

  1. Docs Scrolling: Fixed an issue where the API documentation page was not scrollable on some viewports.