API Change in latest version

2 posts / 0 new
Last post
#1 Wed, 06/08/2016 - 22:11
mackhax0r

API Change in latest version

Hello!

I am using the Virtualmin API. I noticed that with the latest version of virtualmin/webmin (5.0?) it is returning a consistent JSON, thank you! However, the API is returning weird data. Here is an example for a test server:
http://pastebin.com/PwXNeywY

The result is being grouped up into the name value, split by tabs. All the values are empty.

Here is the output from shell:
http://pastebin.com/dpgaZrYb

Some other commands:
http://pastebin.com/6ivW48z5
http://pastebin.com/tPs7C1WU
http://pastebin.com/AD9k9rrr (wth is that?)
http://pastebin.com/kU3GsaTy

Yet, get-command seems to be correctly formatted:
http://pastebin.com/nuNuy7bT

Am I missing something here?

Wed, 06/08/2016 - 22:17
mackhax0r

Wow, okay. So adding &multiline to the querystring returns the proper JSON. Anyone know why that is even a thing? It wasn't in pre-5.0 version.

Topic locked