Backend Issue 2: Add Admin Forgejo Connection CRUD API #3
Labels
No Label
admin
agent-api
api
api-client
audit
backend
boards
cost-accounting
database
design
forgejo
frontend
issues
metrics
mutation
navigation
optional
phase:1
phase:2
phase:3
phase:4
phase:5
phase:6
polish
priority:high
priority:low
priority:medium
service
sync
usage-accuracy
validation
webhooks
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/Pipeline#3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Allow organization admins to manage Forgejo connections.
Scope
Suggested Implementation References
backend/app/api/deps.pyrequire_org_adminbackend/app/api/gateways.py,backend/app/schemas/gateways.pybackend/app/main.pybackend/app/schemas/common.pyOkResponseSuggested Endpoints
GET /api/v1/forgejo/connectionsPOST /api/v1/forgejo/connectionsGET /api/v1/forgejo/connections/{connection_id}PATCH /api/v1/forgejo/connections/{connection_id}DELETE /api/v1/forgejo/connections/{connection_id}Acceptance Criteria
has_tokenandtoken_last_eight.base_urlis normalized to a root Forgejo host URL, not a full API endpoint path.base_urlaccepts onlyhttporhttps.Out Of Scope