Support

Expand all | Collapse all

Why cant I access my Api Docs anymore ?

  • 1.  Why cant I access my Api Docs anymore ?

    Posted 01-16-2019 19:39
    I am using the path https://guardanthealth.jamacloud.com/rest/latest/api-docs
    and I get the response. I was able to access it before. 
    {"meta":{"status":"Unauthorized","timestamp":"2019-01-17T00:36:28.744+0000","message":"CSRF Exception"}}


    ------------------------------
    Aprajita Mathur
    Guardant Health
    Redwood City CA
    2156871983
    ------------------------------


  • 2.  RE: Why cant I access my Api Docs anymore ?

    Posted 01-17-2019 10:05
    Hi Aprajita:

    It seems as though you attempting to go to {context-path}/rest/latest/api-docs as opposed to {context-path}/api-docs.

    The correct link is: {context-path}/api-docs

    Hope this helps!

    ------------------------------
    Chloe Elliott
    Jama Software
    Portland OR
    ------------------------------



  • 3.  RE: Why cant I access my Api Docs anymore ?

    Posted 01-17-2019 13:57
    Thanks Chloe , that worked. Sorry about that I was reading the wrong path from your documentation.

    ------------------------------
    Aprajita Mathur
    Guardant Health
    Redwood City CA
    2156871983
    ------------------------------



  • 4.  RE: Why cant I access my Api Docs anymore ?

    Posted 01-17-2019 14:00
    No worries, that is why we are here. Would you please link me to that documentation? I would like to take a look at it, and correct it if necessary. Thank you in advance!

    ------------------------------
    Chloe Elliott
    Jama Software
    Portland OR
    ------------------------------



  • 5.  RE: Why cant I access my Api Docs anymore ?

    Posted 12 days ago
    Edited by Brian 12 days ago
    Hi Chloe,

    I came accross the same issue. The picture in this document suggests the "rest/latest" should be used in the URL.

    https://dev.jamasoftware.com/api/



    ------------------------------
    Brian
    ------------------------------



  • 6.  RE: Why cant I access my Api Docs anymore ?

    Posted 11 days ago

    Hey Brian,

    Nick jumping in here really quickly to try and clarify.

    At this point, while all of our calls are routed through {context-path}/rest/latest... to access the Swagger Web API UI, that url is {context-path}/api-docs.  You can confirm this by looking at the calls made within the Swagger UI.  So the long summary short is that while the calls are routed through one URL, the Web UI utilizes a different one.  You can confirm this within the "Swagger" section of our API documentation here, if you'd like.

    I hope that this clarifies and let me know if there's more information needed!



    ------------------------------
    Nick S
    Jama Software
    ------------------------------



  • 7.  RE: Why cant I access my Api Docs anymore ?

    Posted 11 days ago
    Hi Nick,

    Thanks, this makes sense. All I was trying to highlight is how folks might get confused and use the the wrong URL - I did and so did Aprajita. I think the screenshot led to the confusion. It looks like a browser bar, but it is actually the swagger header (See previous picture).

    Thanks for the support.

    Brian

    ------------------------------
    Brian
    ------------------------------