Developer

 View Only
last person joined: 2 days ago 

Expand all | Collapse all

ArubaOS 8 API with text/plain responses

This thread has been viewed 11 times
  • 1.  ArubaOS 8 API with text/plain responses

    Posted Oct 24, 2020 03:29 PM

    I am building an in house app to help troubleshoot wifi connection and I'm using the API in ArubaOS 8.6 to run show commands.  My issue is that they are almost all coming back in JSON format however I would like to see the show commands the same way they are shown on the cli.  I have tried adding a 'Accept: text/plain' to my query however json is still returned.  Is there any flag I can send with my request to get the responses back in text/plain format?

     

    Thanks!



  • 2.  RE: ArubaOS 8 API with text/plain responses

    EMPLOYEE
    Posted Oct 25, 2020 06:41 AM

    Hi,

     

    I think this is the expected behavior as JSON will give you the easiest way to parse the response. This is mentioned here https://developer.arubanetworks.com/aruba-aos/docs/showcommand-api 

     

    You can write a code to display the JSON output in the format that you need.