Support non-string values in templates. Thanks again @ferrerod !
Stop support for old node versions < 4. Update dependency versions. Thanks @kopach ! Add Parse server support. Thanks @ipuiu ! Add jsonPathSwitchResponse to support return lists of objects from a single mock file. Thanks @ketonal !
Add option for CORS credentials. Thanks @zeflq ! Allow HTTP status to be updated from /admin/setMock. Thanks @jordanhamill !
Fixed an issue causing httpStatus to be ignored. Thanks @aleofreddi ! Add support for proxy intercept function. Thanks @pgraham ! Switch to work on Node > 4.0.0.
Fix to return 404 instead of 500, when no mockFile is found. Thanks @aburmeis ! When switch is used, a standard http status can be returned when there's no match, even without a base mockFile. Add support for basepath.
Improved templating, with the templateSwitch option. Thanks @ferrerod !
Upgrade version of express-http-proxy. (Fix for issue #48.) Thanks @pgraham !
Allow PATCH method in CORS middleware. (Fix for issue #54.) Also fixed some flaky tests.
Added template feature, to insert values from request into the mock response. Thanks @Samurai336 !
Added express-xml-bodyparser, so that XML post requests can be use for RegExp switches. Thanks @asnov !
Added support for custom middleware functions.
Added proxy option. Thanks @ztsmith !
Added ability to switch using Regular Expression. (See issue #2, #33, #34) Thanks @dploeger !
Added ability to switch on header param. Thanks @stelio !
Added support for alternate paths in a web service config. Added support for a callback function when starting the server. Thanks @ztsmith !
Added option to log request headers. Thanks @dmeenhuis !
Added support to run apimocker in Cloud Foundry.
Added support for tilde (~) in mockDirectory config setting.
Removed support for old deprecated config file format. Fixed issue #19.
Added support for additional custom HTTP headers. Thanks to @jcstover !
Added support for switching response based on complex JSON request, using JSONPath. (see issue #14) Thanks to @priyagampa !
Added support for switching response HTTP status based on a request parameter. (see issue #12)
Added support for multiple switch parameters on a single URL. Thanks @skjegg and @snyoz !
Added support for a static path. (see issue #9)
Refactored and updated to use Express 4.5. (No functional change.)
Allows configuration of the "access-control-allow-headers" HTTP header.
Now allows HTTP status code to be set for each response. Config file format also allows configuration of different responses based on http verb.
New "switch" feature added, allowing different responses based on a request parameter.
New config file format was introduced, allowing for custom content-types and more fine grained control over services.