Skip to content

Commit 4315f53

Browse files
committed
feat: added new option to group endpoints by path
1 parent 953f178 commit 4315f53

29 files changed

+1826
-261
lines changed

dist/index.html

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
7+
<title>RapiDoc</title>
8+
</head>
9+
10+
<body>
11+
<!--
12+
Some sample spec to try
13+
https://api.apis.guru/v2/specs/stripe.com/2019-02-19/swagger.json
14+
https://api.apis.guru/v2/specs/github.com/v3/swagger.json
15+
https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json
16+
https://petstore.swagger.io/v2/swagger.json
17+
https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown
18+
./specs/petstore_anyof.yaml <<< contains complex one-of with inline primitives and recursive objects
19+
./specs/oneof1.yaml <<< nested oneof
20+
-->
21+
<rapi-doc
22+
id="thedoc"
23+
spec-url="./specs/petstore_extended.yaml"
24+
theme="dark"
25+
allow-api-list-style-selection = "false"
26+
api-list-style = "group-by-path"
27+
> </rapi-doc>
28+
29+
<!--
30+
<script>
31+
document.addEventListener('DOMContentLoaded', (event) => {
32+
let docEl = document.getElementById("thedoc");
33+
let strSpec = `
34+
{
35+
"swagger": "2.0",
36+
"info": {
37+
"description": "Sample to test"
38+
},
39+
"paths": {
40+
"/pets": {
41+
"get": {
42+
"description": "Returns all pets from the system that the user has access to",
43+
"produces": [ "application/json"],
44+
"responses": {
45+
"200": {
46+
"description": "A list of pets.",
47+
"schema": {
48+
"type": "array",
49+
"items": {
50+
"$ref": "#/definitions/Pet"
51+
}
52+
}
53+
}
54+
}
55+
}
56+
}
57+
},
58+
"definitions": {
59+
"Pet": {
60+
"type": "object",
61+
"required": [
62+
"id",
63+
"name"
64+
],
65+
"properties": {
66+
"id": {
67+
"type": "integer",
68+
"format": "int64"
69+
},
70+
"name": {
71+
"type": "string"
72+
},
73+
"tag": {
74+
"type": "string"
75+
}
76+
}
77+
}
78+
}
79+
}
80+
`;
81+
let objSpec = JSON.parse(strSpec);
82+
docEl.loadSpec(objSpec);
83+
})
84+
</script>
85+
-->
86+
87+
<script type="text/javascript" src="rapidoc-min.js"></script></body>
88+
89+
</html>

dist/index.html.gz

986 Bytes
Binary file not shown.

dist/rapidoc-min.js

Lines changed: 168 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.gz

159 KB
Binary file not shown.

dist/rapidoc-min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.map.gz

177 Bytes
Binary file not shown.

dist/rapidoc-regular.woff2

16 KB
Binary file not shown.

dist/rapidoc-semi-bold.woff2

16.2 KB
Binary file not shown.

dist/report.html

Lines changed: 65 additions & 0 deletions
Large diffs are not rendered by default.

dist/roboto-mono-bold.woff2

15.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)