Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] [mylyn-reviews-dev] what does gerrit connector use to list projects?

On Thu, Apr 5, 2012 at 00:22, Sascha Scholz <sascha.scholz@xxxxxxxxx> wrote:
>
> I'm glad to hear that you are working on a REST API for Gerrit. :-)
>
> In the Mylyn connector we use
> ProjectAdminService.visibleProjectDetails (fallback to visibleProjects
> for older Gerrit releases).

So a replacement for this going forward would be the /projects/ URL:

  https://gerrit-review.googlesource.com/34490  -- make /projects/
  https://gerrit-review.googlesource.com/34492  -- filtering

All older versions of Gerrit will return a 404 for this URL, so newer
versions of the connector could ask for this URL first and fall back
to the visibleProject method approach.

I'm starting to build newer APIs in a similar style, e.g. I have an
RFC now pending for /changes/ to search for changes:

  https://gerrit-review.googlesource.com/34486

Comments from teams that will actually call these APIs would be very
much appreciated, as we want these to be the start of a very long term
REST like API that everyone can build around with less hackery
involved.


Back to the top