Go Daemon¶
The Go daemon provides the backend API for VisionStudio.
Location¶
API Endpoints¶
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health |
Health check |
| GET | /api/projects |
List all projects |
| GET | /api/projects/{project} |
Get project details |
| GET | /api/projects/{project}/specs/{type} |
Get spec content |
| PUT | /api/projects/{project}/specs/{type} |
Save spec content |
| POST | /api/projects/{project}/specs/{type}/evaluate |
Evaluate spec |
| POST | /api/chat |
LLM chat |
Configuration¶
The daemon runs on 127.0.0.1:8765 by default.
Dependencies¶
chi- HTTP routercors- CORS middlewarevisionspec- Spec orchestration (planned)omniagent- LLM integration (planned)
Extending¶
To add a new endpoint:
- Add handler method to
Serverstruct - Register route in
Router()method - Add corresponding API types in
pkg/api/types.go