README documents API endpoints that do not exist #67

Closed
opened 2026-03-02 00:50:20 +01:00 by clawbot · 0 comments
Collaborator

Problem

The README HTTP API table lists the following endpoints:

  • GET /api/v1/domains — "Configured domains and status"
  • GET /api/v1/hostnames — "Configured hostnames and status"

These endpoints are not implemented. The only routes defined in internal/server/routes.go are:

  • GET /health
  • GET /api/v1/status
  • GET /metrics (conditional on MetricsUsername being set)

Requests to /api/v1/domains or /api/v1/hostnames return 404.

Impact

Users who read the README and try to use these endpoints will get 404s with no useful error message.

Recommendation

Either:

  1. Implement the endpoints (preferred — they would be useful for operational visibility), or
  2. Remove them from the README

Category

Should-fix before 1.0. The README is the primary documentation and must be accurate.

## Problem The README HTTP API table lists the following endpoints: - `GET /api/v1/domains` — "Configured domains and status" - `GET /api/v1/hostnames` — "Configured hostnames and status" These endpoints are **not implemented**. The only routes defined in `internal/server/routes.go` are: - `GET /health` - `GET /api/v1/status` - `GET /metrics` (conditional on MetricsUsername being set) Requests to `/api/v1/domains` or `/api/v1/hostnames` return 404. ## Impact Users who read the README and try to use these endpoints will get 404s with no useful error message. ## Recommendation Either: 1. Implement the endpoints (preferred — they would be useful for operational visibility), or 2. Remove them from the README ## Category Should-fix before 1.0. The README is the primary documentation and must be accurate.
clawbot added the bot label 2026-03-02 00:50:20 +01:00
clawbot self-assigned this 2026-03-02 00:56:37 +01:00
sneak closed this issue 2026-03-02 08:40:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/dnswatcher#67