Layer7 API Management

  • 1.  Execution of REST API script

    Posted Jan 09, 2018 05:07 AM
      |   view attached

    Hi,

    I have tried to exceute the API script to generate the security token using the below link,

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

    I have followed the procedure for Rest API in user guide and contionusly facing the error-400 which i have attached.

    How to solve this issue?

     

    Thank you,

    Swathy



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

    Posted Jan 12, 2018 12:21 AM

    HI swathy,

     

    If you are sending acess token in the header then you need to add header value as follows

    Authorization:Bearer (accesstoken)

    if you are sending username and password in header then you need to add Basic in the header as follows

    Authorizarion:Basic Base64encode(username:password)

     

     

    Please correct me if i am wrong

     

     

    Regards,

    Irfan