| Issue 2208: | REST-Endpoint for getting Project-Clone-URLs | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I have not found a REST-Endpoint for getting a projects clone urls. Probably it could be added to project infos (ProjectInfo bean) like it's added as a FetchInfo for changes.
Feb 21, 2015
Project Member
#1
u.wol...@gmail.com
May 5, 2015
Any feedback / input to my proposal above?
May 5, 2015
> Suggestion: Extend ProjectInfo with a new map: "public Map<String, String> > clone;". This map contains clone url for every protocol (key: protocol, value: > url). +1 this sounds good to me > Also, is there a clean way to build the clone urls? No, we need a better implementation for this. At the moment this is done on client side by reusing the CHECKOUT download command type... > Or does it also need to depend on the download-commands-plugin? I think it would be good to have an extension point for CloneCommand's similar to how we already have it for DownloadCommand's. This new extension point should then be implemented in the download-commands plugin.
May 7, 2015
Recently I've implemented a new REST endpoint that provides some server configuration data. Besides others, it also includes the download schemes [1]. It seems that the URLs of the download schemes can be used to construct the clone URLs on client-side [2]. Maybe this is already sufficient for you. At least it cleans up some of the mess we have with the download commands in the Gerrit WebUI. [1] https://gerrit-review.googlesource.com/67572 [2] https://gerrit-review.googlesource.com/67743
May 7, 2015
Edwin, thanks for your reply. The new REST endpoint seems to provide everything what I need. I'll report back once I have implemented it in the gerrit-rest-java-client (and thus the IntelliJ plugin).
May 7, 2015
Please take care that there is still a small modification coming: https://gerrit-review.googlesource.com/67735
Jan 6 (4 days ago)
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |