Layer7 API Management

  • 1.  Execution of REST API script

    Posted Jan 10, 2018 02:44 AM
      |   view attached

    Hi,

    I tried to execute the API script using the below link.

    http://localhost:8080/TestDataManager/swagger-ui.html#/ .

    And I was not able to generate the security token, continously facing the error-400 which I have attached below and also  I have tried in all possibilities for giving the credentials in base-64 format in the Authorization tab.

    How to solve this issue?

     

    Thank you,

    Swathy.



  • 2.  Re: Execution of REST API script
    Best Answer

    Posted Jan 10, 2018 11:51 AM

    Hi Swathy,

     

    If you are passing username and password in the authorization header then you also need to add Basic in the header as shown below

     

    Authorization: Basic Base64(username:password)

     

     

    Please correct me if i am wrong.

     

     

    Thanks,

    Irfan