-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
316 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": { | ||
|