Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Jan 24, 2024
1 parent 2fcffd2 commit 7a8df22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist/**
!dist/try-it-out.min.js
!dist/index.html
node_modules
.idea
15 changes: 15 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<html>
<head>
<script type="text/javascript" src="./try-it-out.min.js"></script>
</head>
<body>
<div id="redoc_container"></div>
<script>
RedocTryItOut.init(
"https://petstore.swagger.io/v2/swagger.json",
{ title: "Pet Store" },
document.getElementById("redoc_container"),
);
</script>
</body>
</html>

0 comments on commit 7a8df22

Please sign in to comment.