Idea: check if a header named X-DATA-TYPE is set to either json or msgpack. If it's not set, use JSON by default. Otherwise use whatever is set there. This would require two changes:
A standard function to load data from the API
Changing the boilerplate function on the API to use the appropriate format
Idea: check if a header named
X-DATA-TYPE
is set to eitherjson
ormsgpack
. If it's not set, use JSON by default. Otherwise use whatever is set there. This would require two changes:boilerplate
function on the API to use the appropriate format