File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,18 @@ the line above.
165
165
"response": "response for 123"
166
166
}
167
167
168
+ Wildcard responses are also supported, very useful to have 'wildcard'
169
+ directories, so that if for given a request like:
170
+
171
+ GET /api/users/1/profile/
172
+
173
+ you don't have a file in ` ./canned/api/users/1/profile/index.get.json ` then
174
+ it would look for a file in ` ./canned/api/users/any/index.get.json ` or
175
+ similar. Wildcards can be specified on the command line via
176
+
177
+ canned --wildcard iamawildcard
178
+
179
+
168
180
How about some docs inside for the responses?
169
181
---------------------------------------------
170
182
Most content types support comments natively, like html or javascript. Sadly the
@@ -257,6 +269,8 @@ Release History
257
269
258
270
### next
259
271
* update depedencies and dev-dependencies
272
+ * wildcard parameters thanks to [ msurdi] ( https://github.com/msurdi ) see
273
+ https://github.com/sideshowcoder/canned/pull/64
260
274
261
275
### 0.3.3
262
276
* fix support for special characters in the header / params / body matches
You can’t perform that action at this time.
0 commit comments