Question

JSON Response

  • 14 April 2023
  • 3 replies
  • 86 views

Badge +1

I am able to successfully query the rest API and the xml data looks good but when I use ‘Accept: application/json’ the data is not formatted correctly. Is this a known issue? I tested this feature in both python and curl.


3 replies

Userlevel 7
Badge +23

Hi @J-Rod,

Some API requests do not yet support JSON, as such I’d unfortunately say its a known issue. Which API are you calling?

Badge +1

 

 

Get Storage Pool

http://WebConsoleHostName/webconsole/api/StoragePool

Get Storage Pool Details

http://WebConsoleHostName/webconsole/api/StoragePool/{{StoragePoolId}}

Get DDB Store Info

http://WebConsoleHostName/webconsole/api/DDBInformation/{{storeID}}

Userlevel 5
Badge +16

@Damian Andre is correct, xml is supported everywhere. I personally prefer working with json, so I just convert xml responses to json.

Reply