Files
brencher/REST.instruction.md
admin 0e83458044
Merge main to all / rebase (push) Failing after 12s
Python package / build (3.12.3) (push) Successful in 2m6s
Python package / build (3.13) (push) Successful in 2m10s
Python package / build (3.14) (push) Successful in 2m22s
Обновить REST.instruction.md (#48)
Reviewed-on: http://192.168.1.96/admin/brencher/pulls/48
2026-09-04 13:26:37 +02:00

23 lines
552 B
Markdown

# REST API Specifications
## WebSocket Endpoints
- /ws/branches: Backend to UI socket. Send all branches on new connection and un each update
- /ws/environment: Bidirectional socket of EnvironmentDto. Backend should send all environment dtos for new connections
and for each update.
- /ws/errors: Receives errors to display
## DTOs
- Branches in format Dict[envName, List[branchName]]
- EnvironmentDto: (stored in file environment.py)
id: str
branches: List[Tuple[str, str]]
state: str # 'Active' or 'Pause'
pipeline: Dict[str, Any]