Expand description
Protection rules and gitspaces.
Verified against the GitFox API v1.3.0 OpenAPI document:
| Operation | Endpoint |
|---|---|
| list rules | GET /api/v1/repos/{repo_ref}/rules |
| view rule | GET /api/v1/repos/{repo_ref}/rules/{rule_identifier} |
| list gitspaces | GET /api/v1/gitspaces |
| view gitspace | GET /api/v1/gitspaces/{gitspace_identifier} |
| create gitspace | POST /api/v1/gitspaces |
| delete gitspace | DELETE /api/v1/gitspaces/{gitspace_identifier} |
| start / stop | POST …/gitspaces/{gitspace_identifier}/action |
| gitspace logs | GET …/gitspaces/{gitspace_identifier}/logs/stream (SSE) |
Gitspaces are an instance feature that can be switched off; an instance
with them disabled answers the gitspace endpoints with a bare 500, so
callers should check crate::SystemConfig::gitspace_enabled first.