Hello Kenny,
You're right (

I was fooled by the '/r' which seemed very close to '/a'!

Thanks!:

---
Sylvain Desbureaux 

Le 29/03/2019 15:58, « [email protected] au nom de Kenny Paul via RT 
» <[email protected] au nom de [email protected]> a écrit 
:

    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
    
    
    
    
    
    


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.
Thank you.


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16406): https://lists.onap.org/g/onap-discuss/message/16406
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to