Gerrit SSH interface status and "SSH API" replacement?
Paul Sokolovsky
paul.sokolovsky at linaro.org
Wed Mar 14 09:48:00 UTC 2012
Hello Thomas,
On Tue, 13 Mar 2012 09:27:05 -0700 (PDT)
Thomas Broyer <t.broyer at gmail.com> wrote:
>
>
> On Tuesday, March 13, 2012 3:12:24 PM UTC+1, Shawn Pearce wrote:
> >
> > AOSP maintains an additional manifest file that lists every
> > project... because ls-projects isn't (yet) available over HTTP.
> >
> Isn't Admin → Projects in the Web UI the same as gerrit ls-projects?
>
> If so, a GET
> to
> https://gerrit-review.googlesource.com/gerrit/rpc/ProjectAdminService?jsonrpc=2.0&id=1&method=visibleProjects¶ms=W10%3D
> should give you the result (or something like that; I couldn't make
> it work without an xsrfToken; it works from the Web UI if you go to
> https://gerrit-review.googlesource.com/#/admin/projects/ without
> being authenticated –the page is not accessible through the Web UI
> via links–)
Yeah, I figured that there might be a way to plug into internal AJAX
interface (or just scrape web pages), but I was looking for officially
supported external API, anything else might break any time. As it's
about mirroring, using a manifest seems like a good solution.
--
Best Regards,
Paul
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
More information about the linaro-android
mailing list