Skip to content

Commit 0ff9b2f

Browse files
committed
enhanced support for dynamic params and updated documentations/examples
1 parent 4f7ddd7 commit 0ff9b2f

26 files changed

+596
-633
lines changed

dist/eslint_report.html

Lines changed: 0 additions & 129 deletions
This file was deleted.

dist/index.html

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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="light"
25+
allow-api-list-style-selection = "false"
26+
render-style = 'read'
27+
default-schema-tab = "model"
28+
> </rapi-doc>
29+
30+
<!--
31+
<script>
32+
document.addEventListener('DOMContentLoaded', (event) => {
33+
let docEl = document.getElementById("thedoc");
34+
let strSpec = `
35+
{
36+
"swagger": "2.0",
37+
"info": {
38+
"description": "Sample to test"
39+
},
40+
"paths": {
41+
"/pets": {
42+
"get": {
43+
"description": "Returns all pets from the system that the user has access to",
44+
"produces": [ "application/json"],
45+
"responses": {
46+
"200": {
47+
"description": "A list of pets.",
48+
"schema": {
49+
"type": "array",
50+
"items": {
51+
"$ref": "#/definitions/Pet"
52+
}
53+
}
54+
}
55+
}
56+
}
57+
}
58+
},
59+
"definitions": {
60+
"Pet": {
61+
"type": "object",
62+
"required": [
63+
"id",
64+
"name"
65+
],
66+
"properties": {
67+
"id": {
68+
"type": "integer",
69+
"format": "int64"
70+
},
71+
"name": {
72+
"type": "string"
73+
},
74+
"tag": {
75+
"type": "string"
76+
}
77+
}
78+
}
79+
}
80+
}
81+
`;
82+
let objSpec = JSON.parse(strSpec);
83+
docEl.loadSpec(objSpec);
84+
})
85+
</script>
86+
-->
87+
88+
<script type="text/javascript" src="rapidoc-min.js"></script></body>
89+
90+
</html>

dist/index.html.gz

1003 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

164 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.

0 commit comments

Comments
 (0)