Open 0o-de-lally opened 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/
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/