Github page source base

This commit is contained in:
NagyZoltanPeter 2023-10-27 10:45:46 +02:00
parent 8df6bfafdf
commit 4bf3778b27
No known key found for this signature in database
GPG Key ID: 16EADB9673B65368
13 changed files with 24520 additions and 0 deletions

View File

@ -1,2 +1,7 @@
# waku-rest-api
Open API specification of Waku v2 client interface
This branch stands for the source of Waku v2 Rest API specification page hosted on Github Pages on
https://github.com/waku-org/waku-rest-api repository.
Credit goes to https://rapidocweb.com/ for the engine that renders the specification.

6
dist/index.html vendored Normal file
View File

@ -0,0 +1,6 @@
<!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 rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/styles/default.min.css"><script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.1/build/highlight.min.js"></script><script defer="defer" src="rapidoc-min.js"></script></head><script>window.addEventListener('DOMContentLoaded', (event) => {
const docEl = document.getElementById('thedoc');
docEl.addEventListener('before-try', (e) => {
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
});
});</script><body><rapi-doc spec-url="./specs/temp.yaml" id="thedoc" theme="dark" render-style="view" schema-style="table" show-method-in-nav-bar="true" use-path-in-nav-bar="true" show-components="true" show-info="true" show-header="true" allow-search="false" allow-advanced-search="true" allow-spec-url-load="false" allow-spec-file-download="true" allow-server-selection="true" allow-authentication="true" update-route="false" match-type="regex" persist-auth="true"></rapi-doc></body></html>

BIN
dist/index.html.gz vendored Normal file

Binary file not shown.

3896
dist/rapidoc-min.js vendored Normal file

File diff suppressed because one or more lines are too long

71
dist/rapidoc-min.js.LICENSE.txt vendored Normal file
View File

@ -0,0 +1,71 @@
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017-2021 Joachim Wester
* MIT license
*/
/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* (c) 2017-2022 Joachim Wester
* MIT licensed
*/
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/
/**
* @preserve
* RapiDoc 9.3.5-beta - WebComponent to View OpenAPI docs
* License: MIT
* Repo : https://github.com/rapi-doc/RapiDoc
* Author : Mrinmoy Majumdar
*/

BIN
dist/rapidoc-min.js.LICENSE.txt.gz vendored Normal file

Binary file not shown.

BIN
dist/rapidoc-min.js.gz vendored Normal file

Binary file not shown.

1
dist/rapidoc-min.js.map vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/rapidoc-min.js.map.gz vendored Normal file

Binary file not shown.

20474
dist/rapidoc.js vendored Normal file

File diff suppressed because one or more lines are too long

39
dist/report.html vendored Normal file

File diff suppressed because one or more lines are too long

28
index.html Normal file
View File

@ -0,0 +1,28 @@
<!doctype html> <!-- Important: must specify -->
<html>
<head>
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
<!-- <script type="module" src="./dist2/rapidoc-min.js"></script> -->
<script type="text/javascript" src="./dist/rapidoc-min.js"></script>
<title>Waku API documentation</title>
</head>
<body>
<rapi-doc id="wakuapi" show-info="true" spec-url="https://raw.githubusercontent.com/waku-org/waku-rest-api/master/api-spec/openapi.yaml"
show-header="false" render-style="focused" theme="dark" allow-authentication="false" allow-try="true"
show-curl-before-try="true" schema-style="table" schema-expand-level="full" default-schema-tab="schema"
regular-font="Open Sans" mono-font="Roboto Mono" use-path-in-nav-bar="true">
<div slot="nav-logo">
<div style="display: flex; align-items: center; justify-content: center;">
<img src = "./waku_logo.png" style="width:40px; margin-right: 20px; margin-bottom: 20px;"> <span style="color:#fff"> <b>Waku API</b><br></span>
</div>
<div style="width:100%; display: flex;justify-content: center;">
<button class="btn medium" onclick="document.getElementById('wakuapi').setAttribute('use-path-in-nav-bar', 'true')">Path</button>
<button class="btn medium" onclick="document.getElementById('wakuapi').setAttribute('use-path-in-nav-bar', 'false')">Summary</button>
</div>
</div>
</rapi-doc>
</body>
<!-- <footer>
<p>Powered by <a href="https://rapidocweb.com">RapiDoc OpenAPI Spec Documentations</a></p>
</footer> -->
</html>

BIN
waku_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB