kahmali / meteor-restivus

REST APIs for the Best of Us! - A Meteor 0.9+ package for building REST APIs https://atmospherejs.com/nimble/restivus
MIT License
544 stars 116 forks source link

Allow semicolon as well as ampersand in GET requests #221

Open 0o-de-lally opened 8 years ago

0o-de-lally commented 8 years ago

Most services will use 'ampersand' to designate different query variables. Restivus parses this nicely. http://localhost:3000/api?a=1&b=2&c=2

But if I (or my users) prefer use the API with semicolons (or other characters) Restivus will not parse it. http://localhost:3000/api?a=1;b=2;c=2

Is there a way to override the default behavior. Or include both cases? Or define what characters can server as delimiters

See here a library parses query strings comprehensively. http://code.stephenmorley.org/javascript/parsing-query-strings-for-get-data/