Skip to content

Commit

Permalink
Adding web browser viewer (#94)
Browse files Browse the repository at this point in the history
Adding web browser viewer as a separate `/viewer` folder.
  • Loading branch information
brian-comply0 authored May 8, 2024
1 parent 94dda09 commit 5fda7e2
Show file tree
Hide file tree
Showing 6 changed files with 3,945 additions and 0 deletions.
Binary file added viewer/assets/img/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added viewer/assets/img/favicon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions viewer/assets/img/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions viewer/assets/img/oscalio-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions viewer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!doctype html>
<html>
<head>
<title>OSCAL REST OpenAPI Specification</title>
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
<!-- <script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script> -->
<script type="text/javascript" src="rapidoc-min.js"></script>
<link rel="icon" type="image/svg+xml" href="assets/img/favicon.svg">
<!-- <link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon-32x32.png"> -->
<link rel="icon" type="image/png" sizes="16x16" href="assets/img/favicon-16x16.png">
</head>
<body>
<!-- For information about settings: https://rapidocweb.com/api.html -->
<rapi-doc
spec-url="https://raw.githubusercontent.com/EasyDynamics/oscal-rest/RefactorRestAPI/OSCALRestOpenAPI.yaml"
theme = "dark"
heading-text = "OSCAL REST OpenAPI Specification"
render-style = "view"
schema-style = "tree"
default-schema-tab = "schema"
show-header = 'false'
show-info = 'true'
allow-try = "false"
allow-authentication ='false'
allow-server-selection = 'false'
allow-api-list-style-selection ='false'
bg-color="#001131"
text-color = "#ffffff"
header-color = "#001131"
primary-color = "#00BDE3"
load-fonts = "true"
regular-font = "Arial"
mono-font = "Roboto Mono"
>

<div style="padding: 25px;">
<a href="https://oscal.io"><img src="assets/img/oscalio-logo.svg" style="width:150px;" /></a>
</div>

<!-- <div class="collapse navbar-collapse align-items-center" id="navbarSupportedContent">
<table><tr><td><img src="assets/oscalio-logo.svg" style="width:100px;" /></td><td><a class="nav-link" href="https://oscal.io">Home</a></td></tr></table>
</div> -->

</rapi-doc>
</body>

</html>
3,895 changes: 3,895 additions & 0 deletions viewer/rapidoc-min.js

Large diffs are not rendered by default.

0 comments on commit 5fda7e2

Please sign in to comment.