I am using Flask-Restless to create my API, which requires queries parameters to be formatted using a list of filter objects. A valid query follows this format:
/api/person?q={"filters":[{"name":"firstName","op":"like","val":"Mike"}]}
(See Flask-Restless query docs here.)
When I use Angular's $http.get
to pass the query params, they are encoded in the URL and break the query:
GET /api/person?q=%7B%22filters%22:%7B%22name%22:%22firstName%22,%22op%22:%22like%22,%22val%22:%22Mike%22%7D%7D HTTP/1.1"
Is it possible to disable encoding for all or some of the parameters?