Hello Thomas,
On Tue, 13 Mar 2012 09:27:05 -0700 (PDT) Thomas Broyer t.broyer@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?jsonrp... 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.