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
- < link href ="https://fonts.googleapis.com/css?family=Open+Sans:300,600&display=swap " rel ="stylesheet ">
9
- < link rel ="
stylesheet "
href ="
//cdn.jsdelivr.net/gh/highlightjs/[email protected] /build/styles/default.min.css "
>
10
- < script src ="
//cdn.jsdelivr.net/gh/highlightjs/[email protected] /build/highlight.min.js "
> </ script >
11
- </ head >
12
-
13
- < body >
14
- <!--
15
- Some sample spec to try
16
- https://api.apis.guru/v2/specs/stripe.com/2019-02-19/swagger.json
17
- https://api.apis.guru/v2/specs/github.com/v3/swagger.json
18
- https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json
19
- https://petstore.swagger.io/v2/swagger.json
20
- https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown
21
- ./specs/petstore_anyof.yaml <<< contains complex one-of with inline primitives and recursive objects
22
- ./specs/oneof1.yaml <<< nested oneof
23
- -->
24
-
25
- <!--
26
- <rapi-doc
27
- id = "thedoc"
28
- spec-url = "https://petstore.swagger.io/v2/swagger.json"
29
- theme = "light"
30
- render-style = "read"
31
- schema-style = 'tree'
32
- sort-endpoints-by = "method"
33
- response-area-height = "900px"
34
- > </rapi-doc>
35
- -->
36
-
37
- < rapi-doc
38
- id = "thedoc "
39
- spec-url = "./specs/multiple-example.yaml "
40
- theme = "light "
41
- allow-api-list-style-selection = "false "
42
- render-style = "view "
43
- regular-font = 'Open Sans '
44
- schema-style = 'tree '
45
- schema-expand-level = "3 "
46
- default-schema-tab = "model "
47
- allow-server-selection = "false "
48
- > </ rapi-doc >
49
-
50
- <!--
51
- <rapi-doc id = "thedoc" ></rapi-doc>
52
- <script>
53
- document.addEventListener('DOMContentLoaded', (event) => {
54
- let docEl = document.getElementById("thedoc");
55
- let strSpec = `
56
- {
57
- "swagger": "2.0",
58
- "info": {
59
- "description": "Sample to test"
60
- },
61
- "paths": {
62
- "/pets": {
63
- "get": {
64
- "description": "Returns all pets from the system that the user has access to",
65
- "produces": [ "application/json"],
66
- "responses": {
67
- "200": {
68
- "description": "A list of pets.",
69
- "schema": {
70
- "type": "array",
71
- "items": {
72
- "$ref": "#/definitions/Pet"
73
- }
74
- }
75
- }
76
- }
77
- }
78
- }
79
- },
80
- "definitions": {
81
- "Pet": {
82
- "type": "object",
83
- "required": [
84
- "id",
85
- "name"
86
- ],
87
- "properties": {
88
- "id": {
89
- "type": "integer",
90
- "format": "int64"
91
- },
92
- "name": {
93
- "type": "string"
94
- },
95
- "tag": {
96
- "type": "string"
97
- }
98
- }
99
- }
100
- }
101
- }
102
- `;
103
- let objSpec = JSON.parse(strSpec);
104
- docEl.loadSpec(objSpec);
105
- })
106
- </script>
107
- -->
108
- < script type ="text/javascript " src ="rapidoc-min.js "> </ script > </ body >
109
-
110
- </ html >
1
+ <!doctype html> < html lang ="
en "
> < head > < meta charset ="
utf-8 "
> < meta name ="
viewport "
content ="
width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes "
> < title > RapiDoc
</ title > < link href ="
https://fonts.googleapis.com/css?family=Open+Sans:300,600&display=swap "
rel ="
stylesheet "
> < link rel ="
stylesheet "
href ="
//cdn.jsdelivr.net/gh/highlightjs/[email protected] /build/styles/default.min.css "
> < script src ="
//cdn.jsdelivr.net/gh/highlightjs/[email protected] /build/highlight.min.js "
> </ script > </ head > < body > < rapi-doc id ="
thedoc "
spec-url ="
./specs/multiple-example.yaml "
theme ="
light "
allow-api-list-style-selection ="
false "
render-style ="
view "
regular-font ="
Open Sans "
schema-style ="
tree "
schema-expand-level ="
3 "
default-schema-tab ="
model "
allow-server-selection ="
false "
> </ rapi-doc > < script src ="
rapidoc-min.js "
> </ script > </ body > </ html >
0 commit comments