I'm querying a REST API using vue-resource's $http.get
via:
this.$http.get('/api', {
params: {
id: [1,2,3],
},
});
and this produces the query
/api?id[]=1&id[]=2&id[]=3
But my endpoint expects
/api?id=1&id=2&id=3
Is there a way to tell vue-resource
to encode multiple parameters like this?
I'd like to avoid constructing my own query string, but that's the alternative I can come up with.