Hello,
I’m currently building a mini external webapp using the REST API, and I can’t seem to figure out if the API can serve me JSON instead of XML on demand.
If someone could let me know if there is a header, url param etc I can specify to serve JSON that would be great!
For example: GET servername:52311/api/action/NUM?format=json
You could convert the XML into JSON and then use it. Part of the reason why the REST API only uses XML is that it actually uses XML internally in many cases.
It would be useful if the REST API could return JSON and have the conversion done server side, but that is not an option currently.
The WebUI is written in Node.js so I would think it would want to use JSON as well, but I have no idea how that works under the hood.
Also, are you aware of the WebUI? It might replace your need to build an external mini webapp.
Thanks in advance for the replies.
I just wanted to confirm that in fact I could not extract JSON data.
It’s not a very big deal as the cost of conversion is not very high on my end, it’s more of a convenience factor
jgstew; I’m not aware of WebUI, as I’m not the admin who runs BF, just a Node Dev lol.
However I will inquire about this, to possibly eliminate duplicate efforts.