API proposal: expose mirror options #14027
Labels
modifies/api
This PR adds API routes or modifies them
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
[x]
):Description
Modify(PUT)/query(GET) the mirrors remote fqdn. Correct me if I'm blind but there is no way to get this url as of now using the api:
I think the query should be under
What is this key used for from the response of the above request?:
It is always empty string for all repos (regular, mirrors, forks). This sounds as the perfect key for the mirrors remote address.
For modification, we can have something like:
and optionally for consistency, change
POST /repos/{owner}/{repo}/mirror-sync => POST /repos/{owner}/{repo}/mirror/sync
this will open
/repos/{owner}/{repo}/mirror
for the rest of the available options in the futureScreenshots
The options exposed in the webui
The text was updated successfully, but these errors were encountered: