i struggle to do something that look simple with axios :
Here is my axios query :
axios.get('/consumption_reports', {
params: {
exists: {
energyDeliveryPoint : false
}
}
})
The result is this query :
consumption_reports?exists={"energyDeliveryPoint":false}
When i would like this result :
consumption_reports?exists[energyDeliveryPoint]=false
I tried many different solution but could not found the one that works.
I look forward any answer that keep code simple.
PS : I do not want to hard code the url with my desired behavior.
2
Answers
I finally found myself, in that case i have no choice to do this :
It works with Axios 1.x