ngx-resource icon indicating copy to clipboard operation
ngx-resource copied to clipboard

Send array of params joined by &

Open mirabu2801 opened this issue 1 year ago • 1 comments

Hello! I need to send a query param, whose value is an array I need to send it in the format ?param=val1&param=val2. Is there a way to do this?

mirabu2801 avatar Aug 21 '23 13:08 mirabu2801

I think the closest would be using the Bracket query mapping strategy of the lib:

ResourceGlobalConfig.queryMappingMethod = ResourceQueryMappingMethod.Bracket;

But then you'll need to pass the parameters adding [n] (url encoded) after the param name: ?param%5B0%5D=val1&param%5B1%5D=val2.

josencv avatar Sep 28 '23 16:09 josencv