I am using Django Rest Framework.
The API receives GET requests with json objects encoded into the URL. For example:
/endpoint?%7B%0D%0A++%22foo%22%3A%5B%22bar%22%2C%22baz%22%5D%0D%0A%7D
Where the decoded parameters are
{
"foo":["bar","baz"]
}
I can't find anything in the documentation for Django or DRF pointing to how the framework can handle this so that I get a QueryDict
with the json objects in it by doing something like:
request.query_params # Should yield a dict -> {foo=[bar,baz]}
How can I decode JSON encoded URLs in Django Rest Framework?
Note that my actual parameters are much more complex. Using POST is not an because the caller relies heavily on caching and bookmarking