Skip to content

Split migration api endpoint into service specific one #34172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TheFox0x7 opened this issue Apr 10, 2025 · 0 comments
Open

Split migration api endpoint into service specific one #34172

TheFox0x7 opened this issue Apr 10, 2025 · 0 comments
Labels
topic/api Concerns mainly the API type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@TheFox0x7
Copy link
Contributor

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

@TheFox0x7 TheFox0x7 added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Apr 10, 2025
@kemzeb kemzeb added the topic/api Concerns mainly the API label Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/api Concerns mainly the API type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants