mockaton 8.2.19 → 8.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,10 +66,12 @@ node --import=tsx my-mockaton.js
|
|
|
66
66
|
## Running the Demo Example
|
|
67
67
|
This demo uses the [sample-mocks/](./sample-mocks) directory of this repository.
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
```sh
|
|
70
|
+
git clone https://github.com/ericfortis/mockaton.git
|
|
71
|
+
cd mockaton
|
|
72
|
+
npm install tsx
|
|
73
|
+
npm run demo:ts
|
|
74
|
+
```
|
|
73
75
|
|
|
74
76
|
Experiment with the Dashboard:
|
|
75
77
|
|
|
@@ -237,17 +239,18 @@ permitted](https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file)
|
|
|
237
239
|
|
|
238
240
|
### Index-like route
|
|
239
241
|
For instance, if you have `api/foo/bar` and
|
|
240
|
-
`api/foo
|
|
242
|
+
`api/foo`, you have two options:
|
|
241
243
|
|
|
242
|
-
**Option A
|
|
244
|
+
**Option A:**
|
|
243
245
|
```
|
|
244
246
|
api/foo.GET.200.json
|
|
245
247
|
api/foo/bar.GET.200.json
|
|
246
248
|
```
|
|
247
249
|
|
|
248
|
-
**Option B
|
|
250
|
+
**Option B:** Omit the filename.
|
|
249
251
|
```text
|
|
250
252
|
api/foo/.GET.200.json
|
|
253
|
+
api/foo/bar.GET.200.json
|
|
251
254
|
```
|
|
252
255
|
|
|
253
256
|
---
|
package/package.json
CHANGED