Skip to content

Commit 01a9679

Browse files
committed
Update examples Add docs argument for docs generation.
1 parent 45c2c6d commit 01a9679

File tree

12 files changed

+31454
-7
lines changed

12 files changed

+31454
-7
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
A CLI tool to bundle/extract [Mockoon](https://mockoon.com/) environment files in a git-friendly files tree with 100% backward compatibility.
88

9+
## Changelog
10+
See [CHANGELOG.md](./CHANGELOG.md)
11+
12+
---
913

1014
![lifecycle](./public/assets/lifecycle.png)
1115

@@ -15,10 +19,10 @@ A CLI tool to bundle/extract [Mockoon](https://mockoon.com/) environment files i
1519
- Bundle the extracted file tree into an environment file that matches the original file.
1620

1721
See [examples](./examples):
18-
- Original Mockoon stripe config [environment.json](./examples/environments/stripecom/environment.json)
19-
- Extracted Mockoon stripe config [json tree](./examples/environments/stripecom/extract/json)
20-
- Extracted automatically generated [documentation.md](./examples/environments/stripecom/extract/json/documentation.md)
21-
- Bundled json tree [from-json.json](./examples/environments/stripecom/bundle/from-json.json)
22+
- Original Mockoon stripe config [environment.json](./examples/mockoon-mock-samples/stripecom/environment.json)
23+
- Extracted Mockoon stripe config [json tree](./examples/mockoon-mock-samples/stripecom/extract/json)
24+
- Extracted automatically generated [documentation.md](./examples/mockoon-mock-samples/stripecom/extract/json/documentation.md)
25+
- Bundled json tree [from-json.json](./examples/mockoon-mock-samples/stripecom/bundle/from-json.json)
2226

2327
### Extract features
2428
- Successfully processed any URI with special characters.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Data
2+
3+
4+
5+
## b-1
6+
> Some list items
7+
8+
[See value](./b-1/0--some_list_items/value/index.hbs "See value")
9+
10+
11+
## b-1
12+
> Duplicated bucket name
13+
14+
[See value](./b-1/1--duplicated_bucket_name/value/index.hbs "See value")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Edge cases 1
2+
3+
4+
## Relations
5+
6+
- [routes](./routes/documentation.md "routes")
7+
- [data](./data/documentation.md "data")
Lines changed: 349 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,349 @@
1+
# Routes
2+
3+
4+
5+
## GET /
6+
7+
### 200 (default)
8+
9+
#### Rules
10+
```
11+
[]
12+
```
13+
14+
[See details ](./___get/___responses/200 "See details ")
15+
[See body ](./___get/___responses/200/body/index.hbs "See body ")
16+
17+
18+
19+
## GET /some-route
20+
> some-route-doc
21+
22+
### 200 (default)
23+
> response-doc
24+
25+
#### Rules
26+
```
27+
[]
28+
```
29+
30+
[See details ](./___get/some-route/0--some-route-doc/___responses/200/0--response-doc "See details ")
31+
[See body ](./___get/some-route/0--some-route-doc/___responses/200/0--response-doc/body/index.hbs "See body ")
32+
33+
### 200
34+
> fallback
35+
36+
#### Rules
37+
```
38+
[]
39+
```
40+
41+
[See details ](./___get/some-route/0--some-route-doc/___responses/200/1--fallback "See details ")
42+
[See body ](./___get/some-route/0--some-route-doc/___responses/200/1--fallback/body/index.hbs "See body ")
43+
44+
### 200
45+
> not default
46+
47+
#### Rules
48+
```
49+
[]
50+
```
51+
52+
[See details ](./___get/some-route/0--some-route-doc/___responses/200/2--not_default "See details ")
53+
[See body ](./___get/some-route/0--some-route-doc/___responses/200/2--not_default/body/index.hbs "See body ")
54+
55+
56+
57+
## GET /special-chars/v1-%(\*!&@^#%&\*!&@#^$%^&!\*(+\_\_!@#":>?>~!@#@
58+
> spec-chars-get
59+
60+
### 200 (default)
61+
62+
#### Rules
63+
```
64+
[]
65+
```
66+
67+
[See details ](./___get/special-chars/v1-\(^^^\(__/___responses/200 "See details ")
68+
[See body ](./___get/special-chars/v1-\(^^^\(__/___responses/200/body/index.hbs "See body ")
69+
70+
71+
72+
## POST /special-chars/v2-%(\*!&@^#%&\*!&@#^$%^&!\*(+\_\_!@#":>?>~!@#@
73+
> spec-chars-post
74+
75+
### 200 (default)
76+
77+
#### Rules
78+
```
79+
[]
80+
```
81+
82+
[See details ](./___post/special-chars/v2-\(^^^\(__/0--spec-chars-post/___responses/200 "See details ")
83+
[See body ](./___post/special-chars/v2-\(^^^\(__/0--spec-chars-post/___responses/200/body/index.hbs "See body ")
84+
85+
86+
87+
## POST /special-chars/v2-%(\*!&@^#%&\*!&@#^$%^&!\*(+\_\_!@#":>?>~!@#@
88+
> spec-chars-get-duplicated
89+
90+
### 200 (default)
91+
92+
#### Rules
93+
```
94+
[]
95+
```
96+
97+
[See details ](./___post/special-chars/v2-\(^^^\(__/1--spec-chars-get-duplicated/___responses/200 "See details ")
98+
[See body ](./___post/special-chars/v2-\(^^^\(__/1--spec-chars-get-duplicated/___responses/200/body/index.hbs "See body ")
99+
100+
101+
102+
## GET /some-route
103+
> route duplicated-doc
104+
105+
### 200 (default)
106+
> desponse-duplicated-doc
107+
108+
#### Rules
109+
```
110+
[]
111+
```
112+
113+
[See details ](./___get/some-route/1--route_duplicated-doc/___responses/200/0--desponse-duplicated-doc "See details ")
114+
[See body ](./___get/some-route/1--route_duplicated-doc/___responses/200/0--desponse-duplicated-doc/body/index.hbs "See body ")
115+
116+
### 200
117+
> fallback
118+
119+
#### Rules
120+
```
121+
[]
122+
```
123+
124+
[See details ](./___get/some-route/1--route_duplicated-doc/___responses/200/1--fallback "See details ")
125+
[See body ](./___get/some-route/1--route_duplicated-doc/___responses/200/1--fallback/body/index.hbs "See body ")
126+
127+
### 200
128+
> not default
129+
130+
#### Rules
131+
```
132+
[]
133+
```
134+
135+
[See details ](./___get/some-route/1--route_duplicated-doc/___responses/200/2--not_default "See details ")
136+
[See body ](./___get/some-route/1--route_duplicated-doc/___responses/200/2--not_default/body/index.hbs "See body ")
137+
138+
139+
140+
## GET /super-long-route/name-GHJHGF&^&\*!^YHHV&^%!\*(@#^%!@#\*(!@^#^%\*!(@#^TG}{{}:":OKJNJHBNJASDHGH&\*^!(@#^!^@\*(#^!@\*#^!@#\*!@\&#^!\*@#%\*!@^#(!@\&#(!@^#&(!@\&#!@\&#^!@\*#%&\*!@#%^&!\*@#\*(!^@\*#(^!@\*#^!(@\*#%&\*(\*HJKAHGDJKHADHGASKJDAHSDkjhgahjkdhghaskdahsdhahsdGHJHKSDGHAJSDHGASJDGASDHJHADHGASGJDGASDJAGSDJGAGSDJAGD
141+
142+
### 200 (default)
143+
144+
#### Rules
145+
```
146+
[]
147+
```
148+
149+
[See details ](./___get/super-long-route/name-ghjhgf^^yhhv^\(^\(^^\(^tgokjnjhbnjasdhgh^\(^^\(^^^^\(\(^\(^^\(^\(^^\(\(hjkahgdjkhadhgaskjdahsdkjhgahjkdhghaskdahsdhahsdghjhksdghajsdhgasjdgasdhjhadhgasgjdgasdjagsdjgagsdjagd/0/___responses/200/0 "See details ")
150+
[See body ](./___get/super-long-route/name-ghjhgf^^yhhv^\(^\(^^\(^tgokjnjhbnjasdhgh^\(^^\(^^^^\(\(^\(^^\(^\(^^\(\(hjkahgdjkhadhgaskjdahsdkjhgahjkdhghaskdahsdhahsdghjhksdghajsdhgasjdgasdhjhadhgasgjdgasdjagsdjgagsdjagd/0/___responses/200/0/body/index.hbs "See body ")
151+
152+
### 200
153+
> resp 2
154+
155+
#### Rules
156+
```
157+
[]
158+
```
159+
160+
[See details ](./___get/super-long-route/name-ghjhgf^^yhhv^\(^\(^^\(^tgokjnjhbnjasdhgh^\(^^\(^^^^\(\(^\(^^\(^\(^^\(\(hjkahgdjkhadhgaskjdahsdkjhgahjkdhghaskdahsdhahsdghjhksdghajsdhgasjdgasdhjhadhgasgjdgasdjagsdjgagsdjagd/0/___responses/200/1--resp_2 "See details ")
161+
[See body ](./___get/super-long-route/name-ghjhgf^^yhhv^\(^\(^^\(^tgokjnjhbnjasdhgh^\(^^\(^^^^\(\(^\(^^\(^\(^^\(\(hjkahgdjkhadhgaskjdahsdkjhgahjkdhghaskdahsdhahsdghjhksdghajsdhgasjdgasdhjhadhgasgjdgasdjagsdjgagsdjagd/0/___responses/200/1--resp_2/body/index.hbs "See body ")
162+
163+
164+
165+
## GET /super-long-route/name-?>\<GHJHGF&^&\*!^YHHV&^%!\*(@#^%!@#\*(!@^#^%\*!(@#^TG}{{}:":OKJNJHBNJASDHGH&\*^!(@#^!^@\*(#^!@\*#^!@#\*!@\&#^!\*@#%\*!@^#(!@\&#(!@^#&(!@\&#!@\&#^!@\*#%&\*!@#%^&!\*@#\*(!^@\*#(^!@\*#^!(@\*#%&\*(\*HJKAHGDJKHADHGASKJDAHSDkjhgahjkdhghaskdahsdhahsdGHJHKSDGHAJSDHGASJDGASDHJHADHGASGJDGASDJAGSDJGAGSDJAGD
166+
167+
### 200 (default)
168+
169+
#### Rules
170+
```
171+
[]
172+
```
173+
174+
[See details ](./___get/super-long-route/name-ghjhgf^^yhhv^\(^\(^^\(^tgokjnjhbnjasdhgh^\(^^\(^^^^\(\(^\(^^\(^\(^^\(\(hjkahgdjkhadhgaskjdahsdkjhgahjkdhghaskdahsdhahsdghjhksdghajsdhgasjdgasdhjhadhgasgjdgasdjagsdjgagsdjagd/1/___responses/200 "See details ")
175+
[See body ](./___get/super-long-route/name-ghjhgf^^yhhv^\(^\(^^\(^tgokjnjhbnjasdhgh^\(^^\(^^^^\(\(^\(^^\(^\(^^\(\(hjkahgdjkhadhgaskjdahsdkjhgahjkdhghaskdahsdhahsdghjhksdghajsdhgasjdgasdhjhadhgasgjdgasdjagsdjgagsdjagd/1/___responses/200/body/index.hbs "See body ")
176+
177+
178+
179+
## GET /super-long-route/name-?>\<GHJHGF&^&\*!^YHHV&^%!\*(@#^%!@#\*(!@^#^%\*!(@#^TG}{{}:":OKJNJHBNJASDHGH&\*^!(@#^!^@\*(#^!@\*#^!@#\*!@\&#^!\*@#%\*!@^#(!@\&#(!@^#&(!@\&#!@\&#^!@\*#%&\*!@#%^&!\*@#\*(!^@\*#(^!@\*#^!(@\*#%&\*(\*HJKAHGDJKHADHGASKJDAHSDkjhgahjkdhghaskdahsdhahsdGHJHKSDGHAJSDHGASJDGASDHJHADHGASGJDGASDJAGSDJGAGSDJAGD
180+
> super long name duplicated
181+
182+
### 200 (default)
183+
184+
#### Rules
185+
```
186+
[]
187+
```
188+
189+
[See details ](./___get/super-long-route/name-ghjhgf^^yhhv^\(^\(^^\(^tgokjnjhbnjasdhgh^\(^^\(^^^^\(\(^\(^^\(^\(^^\(\(hjkahgdjkhadhgaskjdahsdkjhgahjkdhghaskdahsdhahsdghjhksdghajsdhgasjdgasdhjhadhgasgjdgasdjagsdjgagsdjagd/2--super_/19b1184a-f51b-446f-88d4-5f579465634c/___responses/200 "See details ")
190+
[See body ](./___get/super-long-route/name-ghjhgf^^yhhv^\(^\(^^\(^tgokjnjhbnjasdhgh^\(^^\(^^^^\(\(^\(^^\(^\(^^\(\(hjkahgdjkhadhgaskjdahsdkjhgahjkdhghaskdahsdhahsdghjhksdghajsdhgasjdgasdhjhadhgasgjdgasdjagsdjgagsdjagd/2--super_/19b1184a-f51b-446f-88d4-5f579465634c/___responses/200/body/index.hbs "See body ")
191+
192+
193+
194+
## GET /double-slash//
195+
> double-slash origin
196+
197+
### 200 (default)
198+
199+
#### Rules
200+
```
201+
[]
202+
```
203+
204+
[See details ](./___get/double-slash/0--double-slash_origin/___responses/200 "See details ")
205+
[See body ](./___get/double-slash/0--double-slash_origin/___responses/200/body/index.hbs "See body ")
206+
207+
208+
209+
## GET /double-slash/
210+
> double-slash origin copy
211+
212+
### 200 (default)
213+
214+
#### Rules
215+
```
216+
[]
217+
```
218+
219+
[See details ](./___get/double-slash/1--double-slash_origin_copy/___responses/200 "See details ")
220+
[See body ](./___get/double-slash/1--double-slash_origin_copy/___responses/200/body/index.hbs "See body ")
221+
222+
223+
224+
## GET /com1
225+
226+
### 200 (default)
227+
228+
#### Rules
229+
```
230+
[]
231+
```
232+
233+
[See details ](./___get/_com1_/___responses/200 "See details ")
234+
[See body ](./___get/_com1_/___responses/200/body/index.hbs "See body ")
235+
236+
237+
238+
## GET /a/b/c/com1
239+
240+
### 200 (default)
241+
242+
#### Rules
243+
```
244+
[]
245+
```
246+
247+
[See details ](./___get/a/b/c/_com1_/___responses/200 "See details ")
248+
[See body ](./___get/a/b/c/_com1_/___responses/200/body/index.hbs "See body ")
249+
250+
251+
252+
## GET /a/b/com1/b
253+
254+
### 200 (default)
255+
256+
#### Rules
257+
```
258+
[]
259+
```
260+
261+
[See details ](./___get/a/b/_com1_/b/___responses/200 "See details ")
262+
[See body ](./___get/a/b/_com1_/b/___responses/200/body/index.hbs "See body ")
263+
264+
265+
266+
## GET /.
267+
268+
### 200 (default)
269+
270+
#### Rules
271+
```
272+
[]
273+
```
274+
275+
[See details ](./___get/0/___responses/200 "See details ")
276+
[See body ](./___get/0/___responses/200/body/index.hbs "See body ")
277+
278+
279+
280+
## GET /..
281+
282+
### 200 (default)
283+
284+
#### Rules
285+
```
286+
[]
287+
```
288+
289+
[See details ](./___get/_.._/___responses/200 "See details ")
290+
[See body ](./___get/_.._/___responses/200/body/index.hbs "See body ")
291+
292+
293+
294+
## GET /../../../inject-path
295+
> inject-parent-path-test
296+
297+
### 200 (default)
298+
299+
#### Rules
300+
```
301+
[]
302+
```
303+
304+
[See details ](./___get/_.._/_.._/_.._/inject-path/___responses/200 "See details ")
305+
[See body ](./___get/_.._/_.._/_.._/inject-path/___responses/200/body/index.hbs "See body ")
306+
307+
308+
309+
## GET /only-spec/{{{###%%%>>>$
310+
> only-special-chars-route
311+
312+
### 200 (default)
313+
314+
#### Rules
315+
```
316+
[]
317+
```
318+
319+
[See details ](./___get/only-spec/_/___responses/200 "See details ")
320+
[See body ](./___get/only-spec/_/___responses/200/body/index.hbs "See body ")
321+
322+
323+
324+
## GET /.................
325+
326+
### 200 (default)
327+
328+
#### Rules
329+
```
330+
[]
331+
```
332+
333+
[See details ](./___get/1/___responses/200 "See details ")
334+
[See body ](./___get/1/___responses/200/body/index.hbs "See body ")
335+
336+
337+
338+
## GET /only-spec/{{{###%%%>>>$/normal-uri
339+
> only-special-chars-route-nested
340+
341+
### 200 (default)
342+
343+
#### Rules
344+
```
345+
[]
346+
```
347+
348+
[See details ](./___get/only-spec/_/normal-uri/___responses/200 "See details ")
349+
[See body ](./___get/only-spec/_/normal-uri/___responses/200/body/index.hbs "See body ")

0 commit comments

Comments
 (0)