Skip to content

Commit

Permalink
kubermatic: swagger api (kubermatic#582)
Browse files Browse the repository at this point in the history
Signed-off-by: Artiom Diomin <[email protected]>
  • Loading branch information
kron4eg authored Feb 25, 2021
1 parent 427b7d9 commit 09cbab4
Show file tree
Hide file tree
Showing 6 changed files with 18,898 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ spellcheck:
ifndef CODESPELL_BIN
$(error "codespell not available in your environment, use spellcheck-in-docker if you have Docker installed.")
endif
$(CODESPELL_BIN) -S ./themes,./static,*.scss,*.png,*.po,.git,*.jpg,*.woff,*.woff2,*.xml -I ./.codespell.exclude -f
$(CODESPELL_BIN) \
-S ./themes,./static,*.css,swagger*.js,swagger.json,*.scss,*.png,*.po,.git,*.jpg,*.woff,*.woff2,*.xml \
-I ./.codespell.exclude -f

.PHONY: spellcheck-in-docker
spellcheck-in-docker:
Expand Down
30 changes: 30 additions & 0 deletions content/kubermatic/master/references/rest-api/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
+++
title = "REST-API Reference"
date = 2021-02-24T00:00:00
+++

<div id="swagger-ui"></div>

<link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
<script src="swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script>
window.onload = function () {
const ui = SwaggerUIBundle({
url: "swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
});
// End Swagger UI call region

window.ui = ui;
};
</script>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions content/kubermatic/master/references/rest-api/swagger-ui.css

Large diffs are not rendered by default.

Loading

0 comments on commit 09cbab4

Please sign in to comment.