Skip to main content
Question

JSON Response


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
  • 2 replies
  • 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+16

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings