Skip to content

Commit 95116f7

Browse files
committed
updated version
1 parent 6f989ec commit 95116f7

13 files changed

+316
-3
lines changed

dist/index.html

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

dist/index.html.gz

842 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

141 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

176 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: 64 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)