Technical Reference
This section provides comprehensive technical documentation for Brokkr, including API references, code documentation, and implementation details.
API Documentation
The Brokkr API provides a comprehensive set of endpoints for managing deployments, agents, and system configuration. You can explore the complete API documentation in two ways:
Interactive API Documentation
Our interactive Swagger UI provides a complete reference of all available endpoints, including:
- Detailed request/response schemas
- Authentication requirements
- Example requests and responses
- Interactive testing interface
View Interactive API Documentation
API Endpoints Overview
The Brokkr API is organized into the following main sections:
Health Check
GET /healthz- Liveness checkGET /readyz- Readiness checkGET /api/v1/health- Detailed health diagnostics
Agent Management
POST /api/v1/agents- Create a new agentGET /api/v1/agents- List all agentsGET /api/v1/agents/{agent_id}- Get agent detailsPUT /api/v1/agents/{agent_id}- Update an agentDELETE /api/v1/agents/{agent_id}- Delete an agent
Stack Management
POST /api/v1/stacks- Create a new stackGET /api/v1/stacks- List all stacksGET /api/v1/stacks/{stack_id}- Get stack detailsPUT /api/v1/stacks/{stack_id}- Update a stackDELETE /api/v1/stacks/{stack_id}- Delete a stack
Deployment Object Management
POST /api/v1/stacks/{stack_id}/deployment-objects- Create a deployment objectGET /api/v1/stacks/{stack_id}/deployment-objects- List deployment objects
Event Management
POST /api/v1/events- Report a deployment eventGET /api/v1/events- List events
For detailed information about each endpoint, including request/response formats and examples, please refer to the Interactive API Documentation.
Rust API Documentation
The Brokkr codebase is written in Rust and provides a rich set of APIs for both the Broker and Agent components. You can explore the complete Rust API documentation here:
The Rust documentation includes:
- Detailed module and function documentation
- Type definitions and trait implementations
- Code examples and usage patterns
- Implementation details for core components
Key Components
Broker
- API Server implementation
- Database layer
- Event system
- Authentication and authorization
Agent
- Kubernetes client
- Broker communication
- State management
- Deployment orchestration
For detailed information about the Rust implementation, including module structure and function documentation, please refer to the Rust API Documentation.