Struggling with angular's resource factory due to a path variable id and REST API accepting the query parameter "id" on the same URL. Here is an example to illustrate:
Resource url: "/person/:id"
REST API also allows query param id as filter: "/person?id=5,7,11"
or
"/person?id=5&id=7"&id=11"
$resource("/person/:id", {id: [5, 7, 11]})
This results in an invalid URL "/person/5,7,11"
. Is there something I'm missing? I anticipated that an array type couldn't be assigned as a path variable. It should automatically convert to query params (?id=5&id=7&id=11). Any suggestions on how to override this behavior? Also, unable to change the name id. Appreciate any insights. Thank you.