gstroup / apimocker

node.js module to run a simple http server for mock service responses.
MIT License
280 stars 81 forks source link

Add new config option to use jsonPath for response selector. #79

Closed pawel-mika closed 6 years ago

pawel-mika commented 7 years ago

New 'jsonPathSwitchResponse' option allows to skip creating separate 'get' responses for each request parameter value in favor of selecting those respones from a list that is prepared for listing objects from backend (e.g. '/users' -> 'users/:id').

gstroup commented 6 years ago

Thanks for contributing!