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
---
Sylvain Desbureaux 

Le 29/03/2019 15:32, « Andrew Grimberg via RT » 
<[email protected]> a écrit :

    On 3/29/19 6:14 AM, Sylvain Desbureaux wrote:
    > Hello,
    > 
    > I was trying to use gerrit API (as seen in documentation:
    > https://gerrit.onap.org/r/Documentation/rest-api.html).
    > 
    > I keep receive 404. Is the API installed / disabled?
    > 
    > If disabled, any reason to do that (I would like to use it for
    > commenting from Job Deployer bot)? If no reason, can you enable it?

    Which part of the API were you trying to use? It's fully available and
    is partly how Jenkins communicates with Gerrit.

    Perhaps you were using a wrong URL to it?

    For instance here's a quick validation that you can list all the
    projects using the REST API:

    --[cut]--
    curl https://gerrit.onap.org/r/projects/?d
    --[/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 (#16402): https://lists.onap.org/g/onap-discuss/message/16402
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