reyesoft / ngx-jsonapi

JSON API client library for Angular 5+ 👌 :: Production Ready 🚀
https://ngx-jsonapi.reyesoft.com/
MIT License
101 stars 52 forks source link

Should remotefilter be encoding [ ]? #118

Closed peavers closed 6 years ago

peavers commented 6 years ago

I've noticed when using remotefilter it's sending the a request that looks like http://localhost:8082/steaks?filter[color]=blue which blows up my (and probably most peoples) backend services as [] are not allowed characters.

Should it be encoded first, or am I supposed to do that myself?

pablorsk commented 6 years ago

Hi @peavers, "arrays" on GET params are valid with apache and the most web servers. If you encode that, you can not read correcty on PHP servers, for example.

Please check specification example: http://jsonapi.org/examples/#pagination and (RFC 1738).

URLs with brackets are valid. If you need more information, please share your backend type.