On 3/29/19 7:36 AM, [email protected] via RT wrote: > > Hello Andrew, AFAIK the '/r' part of the API is for the GUI whereas the '/a' > is for commands with authentication from user. > > For example, if I want to send a review: > https://gerrit.onap.org/a/changes/83718/revisions/1/review --> 404 > https://gerrit.onap.org/r/changes/83718/revisions/1/review --> 403 (with > basic auth) > > > if you look at https://gerrit.onap.org/r/Documentation/dev-rest-api.html, > you'll see that they talk of '/a' for API
Not exactly. The /r is _required_ for all HTTP interaction with the Gerrit system as the Gerrit URL is fully based out of the /r sub-URL space. If we were talking OpenDaylight then instead of /r it would be /gerrit We don't run any Gerrit system that runs directly of the subdomain name and all are subspaced. This is done as our puppet configuration for Gerrit is designed to allow us to run multiple distinct gerrit systems on the same domain name, though in actuality we have never done that. So for the authenticated URL it would be /r/a which you would see if you went to any of the project listing pages and select the 'http' option from the clone bar. For instance on aaf (https://gerrit.onap.org/r/#/admin/projects/aaf) with it configured to give me the clone command for authenticated HTTP transport I get this: --[cut]-- git clone https://[email protected]/r/a/aaf --[/cut]-- As opposed to the anonymous HTTP which is this: --[cut]-- git clone https://gerrit.onap.org/r/aaf --[/cut]-- -Andy- -- Andrew J Grimberg Manager Release Engineering The Linux Foundation -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16405): https://lists.onap.org/g/onap-discuss/message/16405 Mute This Topic: https://lists.onap.org/mt/30823189/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
binW_98BIrQCn.bin
Description: application/rt-original-message
