|
|
@ -10,13 +10,14 @@ |
|
|
|
<body> |
|
|
|
<body> |
|
|
|
<div id="yasgui"></div> |
|
|
|
<div id="yasgui"></div> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
const url = window.location.href.endsWith('/') ? window.location.href.slice(0, -1) : window.location.href; |
|
|
|
new Yasgui(document.getElementById("yasgui"), { |
|
|
|
new Yasgui(document.getElementById("yasgui"), { |
|
|
|
requestConfig: { endpoint: window.location.protocol + '//' + window.location.host + window.location.pathname + "/query" }, |
|
|
|
requestConfig: { endpoint: url + "/query" }, |
|
|
|
endpointCatalogueOptions: { |
|
|
|
endpointCatalogueOptions: { |
|
|
|
getData: function () { |
|
|
|
getData: function () { |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
{ endpoint: window.location.protocol + '//' + window.location.host + window.location.pathname + "/query" }, |
|
|
|
{ endpoint: url + "/query" }, |
|
|
|
{ endpoint: window.location.protocol + '//' + window.location.host + window.location.pathname + "/update" }, |
|
|
|
{ endpoint: url + "/update" }, |
|
|
|
]; |
|
|
|
]; |
|
|
|
}, |
|
|
|
}, |
|
|
|
keys: [], |
|
|
|
keys: [], |
|
|
|