Split migration api endpoint into service specific one #34172
Labels
topic/api
Concerns mainly the API
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
I think api could benefit from having a more narrow endpoints for migration. Instead of a single which has a lot of options - some irrelevant to the service chosen a service specific one would allow for better validation of the request as it can take service into account instead being generic.
My proposal is to add dedicated routes to
/api/v1/repos/migrate/{service}
endpoint (where service is a known migration source) and deprecate the generic endpoint.This would also help users in understanding the endpoint - which options are supported and which aren't, instead of having to guess or go to UI to figure it out.
Screenshots
No response
The text was updated successfully, but these errors were encountered: