Skip to main content
Question

JSON Response

  • April 14, 2023
  • 3 replies
  • 161 views

Forum|alt.badge.img+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

Damian Andre
Vaulter
Forum|alt.badge.img+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?


Forum|alt.badge.img+1
  • Author
  • Bit
  • April 18, 2023

 

 

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}}


christopherlecky
Byte
Forum|alt.badge.img+17

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