Re: Gerrit's REST API not working

645 views
Skip to first unread message

Edwin Kempin

unread,
Mar 9, 2013, 1:32:09 AM3/9/13
to Siddhartha Thotapalli, repo-d...@googlegroups.com


2013/3/9 Siddhartha Thotapalli <siddhu.t...@gmail.com>
I have set up gerrit at my company, for some reason I am unable to get the api working. When I do http://<hostname>:8080/changes/ I am seeing a list of all changes. I even generated a http password in the settings and used that with /a/changes and it worked fine. But when I try it for /groups/ or with /changes/project~branch~changeID all I see is 404 not found. I have also tried using /a/changes/project~branch~changeID and /changes/changeID. Is there any configuration setting for the rest api to work? Could some one please help me with this.

I am using gerrit 2.5 with git version 1.7.1
This is because in 2.5 there are only very few REST endpoints available [1].
Most of the REST endpoints and those endpoints for which you are getting 404 are only contained in current master and will only be released with Gerrit 2.6 [2].

[1] http://gerrit-documentation.googlecode.com/svn/Documentation/2.5.2/rest-api.html
[2] https://gerrit-review.googlesource.com/Documentation/rest-api.html

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Edwin Kempin

unread,
Mar 11, 2013, 1:09:34 AM3/11/13
to John Spurlock, repo-d...@googlegroups.com, Siddhartha Thotapalli


2013/3/10 John Spurlock <john.s...@gmail.com>
The new REST api appears to be available on (2.5.2-1588-g2ba9049), the version running on *-review.googlesource.com.

1. Is this 2.5.2 variant available somewhere for download? 
No, *-review.googlesource.com runs a custom build which is very close to current master.
As you can see  from the version number this build is 1588 commits ahead of 2.5.2.
 
2. How imminent is 2.6?
The release date is not known yet, but it may take a few more months.
 

Thanks,
- john

Steffen Gebert

unread,
Mar 11, 2013, 3:13:33 AM3/11/13
to repo-discuss@googlegroups.com Discussion
Hi Edwin,

that email just came at the right time :)

I got the same request last night: "Why does our REST API not work, it works at Wikimedia".

It turns out that official Gerrit and Wikimedias both run on master - so I'm thinking of doing the same, esp. if 2.6 is still far ahead (as you assumend in your mail).

Do you consider the current master as "stable" in terms of that you're not aware of bigger glitches?

REST API is a great addition, thanks for all that work!

Steffen

Edwin Kempin

unread,
Mar 11, 2013, 6:04:17 AM3/11/13
to Steffen Gebert, repo-discuss@googlegroups.com Discussion


2013/3/11 Steffen Gebert <ste...@steffen-gebert.de>

Hi Edwin,

that email just came at the right time :)

I got the same request last night: "Why does our REST API not work, it works at Wikimedia".

It turns out that official Gerrit and Wikimedias both run on master - so I'm thinking of doing the same, esp. if 2.6 is still far ahead (as you assumend in your mail).

Do you consider the current master as "stable" in terms of that you're not aware of bigger glitches?
As far as I can say it's pretty stable. Means gerrit-review.googlesource.com runs on master, it works reliable for me and I'm not aware of any bigger issues.
I do know about some minor issues which still need to be investigated. The switch to the REST API is a major change and this effort is not fully done yet. I expect that we do still some modifications of the REST API before releasing 2.6. If you building upon the REST API as it is now in master, you may need to make some minor adaptions to your code later to make it work with the final 2.6 REST API.

Reply all
Reply to author
Forward
0 new messages