Open fxedel opened 6 years ago
https://github.com/OpenLightingProject/rdm-app/blob/master/api/json_v1.py#L35
Need to check with rdmprotocol.org that this doesn't affect them when we do it.
"text/json" would be closer to what we already do elsewhere though.
Actually, it looks like what we do already is wrong and it should be application/json throughout...
I've finally pushed and opened my PR #186
The JSON and Proto API (e.g. http://rdm.openlighting.org/api/json/1/manufacturers) both return
Content-Type: text/plain
in their headers. However, common REST APIs (like this) useContent-Type: application/json
.A nice advantage in Firefox is that
Content-Type: application/json
urls are automatically JSON parsed and prettyprinted (with foldable arrays/objects).