Comparing version 0.1.8 to 0.1.9
{ | ||
"name": "apimocker", | ||
"description": "Simple HTTP server that returns mock service API responses to your front end.", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"engines": {"node": ">=0.10.0"}, | ||
@@ -6,0 +6,0 @@ "author": "Greg Stroup <gstroup@gmail.com>", |
@@ -94,6 +94,7 @@ # apimocker | ||
``` | ||
will return data from the mock file called "customerId1234.json". Switch values can also be passed in as query parameters: | ||
will return data from the mock file called "customerId1234ace.json". Switch values can also be passed in as query parameters: | ||
http://localhost:7878/nested/ace?customerId=1234 | ||
or as part of the URL, if you have configured your service to handle variables, like the "var/:id" service above: | ||
http://localhost:7878/var/789 | ||
If the specific file, such as "customerId1234ace.json" is not found, then apimocker will attempt to return the base file: "ace.json". | ||
@@ -126,2 +127,4 @@ ## Runtime configuration | ||
New config file format was introduced, allowing for custom content-types and more fine grained control over services. | ||
### 0.1.8 | ||
New "switch" feature added, allowing different responses based on a request parameter. | ||
@@ -128,0 +131,0 @@ ## Contributors |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33263
135