I'm trying to make a GET request in Axios with what I believe are "percent encoded" parameters. D
I am trying to call a URL that should resolve to:
https://example.com/api/list?pageSize=15&statusFilters=%5B"DELETED"%2C"DRAFT"%5D
Below is my code, however this resolves to https://example.com/api/list?pageSize=15&statusFilters[]=LIVE&statusFilters[]=DRAFT
which for some bonkers reason returns a completely different set of results (not my API)
var params = {
pageSize: 15,
statusFilters: ["LIVE","DRAFT"]
}
return axios({
method: 'GET',
params,
url: `${API_URL}${url}`,
})