Implements a fully documented API server following the aeries chassis pattern:
- pkg/api: Simplified chassis with App, Response helpers, and OpenAPI builder
- cmd/rdev-api: Entry point with full OpenAPI spec for all v0.4 endpoints
- internal/handlers: Stubbed project handlers (list, get, claude, shell, git, events)
Endpoints:
- GET /health, /ready - Health checks
- GET /docs, /openapi.json - Scalar API docs
- GET /projects - List projects
- GET /projects/{id} - Get project
- POST /projects/{id}/claude, shell, git - Run commands
- GET /projects/{id}/events - SSE streaming
Uses Scalar for dark-mode API documentation at /docs.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
11 lines
172 B
Modula-2
11 lines
172 B
Modula-2
module github.com/orchard9/rdev
|
|
|
|
go 1.23
|
|
|
|
require (
|
|
github.com/bdpiprava/scalar-go v0.13.0
|
|
github.com/go-chi/chi/v5 v5.1.0
|
|
)
|
|
|
|
require gopkg.in/yaml.v3 v3.0.1 // indirect
|