Skip to content

Commit a537d95

Browse files
committed
add some docs for wildcards
1 parent a7795b5 commit a537d95

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,18 @@ the line above.
165165
"response": "response for 123"
166166
}
167167

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+
168180
How about some docs inside for the responses?
169181
---------------------------------------------
170182
Most content types support comments natively, like html or javascript. Sadly the
@@ -257,6 +269,8 @@ Release History
257269

258270
### next
259271
* update depedencies and dev-dependencies
272+
* wildcard parameters thanks to [msurdi](https://github.com/msurdi) see
273+
https://github.com/sideshowcoder/canned/pull/64
260274

261275
### 0.3.3
262276
* fix support for special characters in the header / params / body matches

0 commit comments

Comments
 (0)