Upgrade Swagger to 5 beta

This commit is contained in:
Nemo 2023-03-15 20:46:52 +05:30
parent 6decf25e81
commit 176df4032d
11 changed files with 17 additions and 12 deletions

View File

@ -1,9 +1,14 @@
window.onload = function() {
//<editor-fold desc="Changeable Configuration Block">
let url;
if (window.location.hash) {
url = window.location.hash.substr(2)
} else {
url = "reference/profile.yaml"
}
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
window.ui = SwaggerUIBundle({
url: "reference/Simpl.yaml",
url: url,
dom_id: '#swagger-ui',
deepLinking: true,
presets: [

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/swagger-ui.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<title>Simpl Unofficial API Specification</title>
<link rel="stylesheet" type="text/css" href="dist/swagger-ui.css" />
<link rel="stylesheet" type="text/css" href="index.css" />
<link rel="icon" type="image/png" href="dist/favicon-32x32.png" sizes="32x32" />