Skip to content

Commit

Permalink
updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin9 committed Sep 3, 2019
1 parent 6f989ec commit 95116f7
Show file tree
Hide file tree
Showing 13 changed files with 316 additions and 3 deletions.
80 changes: 80 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!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>
</head>

<body>
<!--
Some sample spec to try
https://api.apis.guru/v2/specs/stripe.com/2019-02-19/swagger.json
https://api.apis.guru/v2/specs/github.com/v3/swagger.json
https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json
https://petstore.swagger.io/v2/swagger.json
https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown
-->
<rapi-doc id="thedoc"> </rapi-doc>

<script>
document.addEventListener('DOMContentLoaded', (event) => {
let docEl = document.getElementById("thedoc");
let strSpec = `
{
"swagger": "2.0",
"info": {
"description": "Sample to test"
},
"paths": {
"/pets": {
"get": {
"description": "Returns all pets from the system that the user has access to",
"produces": [ "application/json"],
"responses": {
"200": {
"description": "A list of pets.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Pet"
}
}
}
}
}
}
},
"definitions": {
"Pet": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"tag": {
"type": "string"
}
}
}
}
}
`;
let objSpec = JSON.parse(strSpec);
docEl.loadSpec(objSpec);
})
</script>


<script type="text/javascript" src="rapidoc-min.js"></script></body>

</html>
Binary file added dist/index.html.gz
Binary file not shown.
168 changes: 168 additions & 0 deletions dist/rapidoc-min.js

Large diffs are not rendered by default.

Binary file added dist/rapidoc-min.js.gz
Binary file not shown.
1 change: 1 addition & 0 deletions dist/rapidoc-min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/rapidoc-min.js.map.gz
Binary file not shown.
Binary file added dist/rapidoc-regular.woff2
Binary file not shown.
Binary file added dist/rapidoc-semi-bold.woff2
Binary file not shown.
64 changes: 64 additions & 0 deletions dist/report.html

Large diffs are not rendered by default.

Binary file added dist/roboto-mono-bold.woff2
Binary file not shown.
Binary file added dist/roboto-mono-regular.woff2
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/rapidoc-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rapidoc",
"version": "5.0.6",
"version": "5.1.0",
"description": "RapiDoc - Open API spec viewer with built in console",
"author": "Mrinmoy Majumdar <[email protected]>",
"repository": {
Expand Down

0 comments on commit 95116f7

Please sign in to comment.