Visual Builder

Get Involved. Join the Conversation.

Topic

    Rick Kelder
    VBCS: Reading swagger file of Oracle PCS API failsAnswered
    Topic posted April 1, 2019 by Rick KelderRed Ribbon: 250+ Points, tagged Process, UI 
    114 Views, 3 Comments
    Title:
    VBCS: Reading swagger file of Oracle PCS API fails
    Summary:
    VBCS: Reading swagger file of Oracle PCS API fails, also no ADF available as far as I know
    Content:

    Dear all,

    Our goal is to use the Oracle PCS API:

    https://docs.oracle.com/en/cloud/paas/process-cloud/cprrb/toc.htm

    Now, I do not wish to manually add every method to our application, so I wanted to try and get this API in our application as Service Connection. First off, I did not know there was a download button, so I tried the /describe on this API (it doesn't work as apparently it is not an ADF enabled API). Then I saw that you can download the Swagger file for the complete PCS API, so I did. I used http://editor.swagger.io/ to read the contents of the Swagger file, and it is a correctly formed Swagger file.

    However, if I try to use this swagger file in the service connections I get an error (See attached screenshot). The steps I have taken are:

    • Service connections, Add +
    • Define by Specification
    • API Type: Swagger, Service Specification: Document, add swagger.json
    • Autentication Mechanism: I tried both Propagate user identity and Basic Authentication to make sure this was not the problem

    Would like to know if I'm missing any steps to make this work or if there is any workaround for now.

    Thanks!

    Regards,

    Rick

    Version:
    Autonomous
    Image:

    Best Comment

    Gerry Kessler

    Hi Rick,

    If you open the browser console you will see details of what failed validation.   What I suspect you will find is an error  saying that Service.baseURI is missing. 

    Assuming that you are using a swagger document rather than web url, this can be fixed by adding a "host" non-empty property value to the pcs swagger file.    Not very intuitive and I will file a bug.

    Regards,

    Gerry

     

    Comment

     

    • Gerry Kessler

      Hi Rick,

      If you open the browser console you will see details of what failed validation.   What I suspect you will find is an error  saying that Service.baseURI is missing. 

      Assuming that you are using a swagger document rather than web url, this can be fixed by adding a "host" non-empty property value to the pcs swagger file.    Not very intuitive and I will file a bug.

      Regards,

      Gerry

       

    • Gerry Kessler

      Hi Rick,

      If you open the browser console you will see details of what failed validation.   What I suspect you will find is an error  saying that Service.baseURI is missing. 

      Assuming that you are using a swagger document rather than web url, this can be fixed by adding a "host" non-empty property value to the pcs swagger file.    Not very intuitive and I will file a bug.

      Regards,

      Gerry

       

      • Rick Kelder

        Hi Gerry,

        This worked. It would be great if no host in the swagger file would mean the current tenant. Thanks for the tip with the browser console, I did not know that service connection errors are detailed there as well.