You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project with composite ids for data entries. In order to query a particular record using JSON Server, I need to write a rewrite like this:
The rewriter correctly rewrites the url, however the new query params are not parsed. The end result is that a request to /records/:idpartone-:idparttwo/ will return the full set of /records/.
The text was updated successfully, but these errors were encountered:
ashleahhill
pushed a commit
to Q-Free-OpenRoads/json-server
that referenced
this issue
Sep 28, 2016
* Add support for query params in rewrite targets
Re-parse the rewrite target to add query params, fixes#372
* Use lodash for Object.assign for node v0.12 compatibility
I'm working on a project with composite ids for data entries. In order to query a particular record using JSON Server, I need to write a rewrite like this:
The rewriter correctly rewrites the url, however the new query params are not parsed. The end result is that a request to
/records/:idpartone-:idparttwo/
will return the full set of/records/
.The text was updated successfully, but these errors were encountered: