mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
display the base url statically
This commit is contained in:
@@ -18,4 +18,8 @@
|
|||||||
.signature-container .description ul {
|
.signature-container .description ul {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
list-style: disc;
|
list-style: disc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -25,6 +25,10 @@
|
|||||||
}
|
}
|
||||||
url = url.substring(0, url.length - 1);
|
url = url.substring(0, url.length - 1);
|
||||||
url = url.substring(0, url.lastIndexOf('/'));
|
url = url.substring(0, url.lastIndexOf('/'));
|
||||||
|
var link = $('#title-base-url-link')
|
||||||
|
link.attr('href', url + '/rest');
|
||||||
|
link.html(link.attr('href'));
|
||||||
|
|
||||||
url = url + '/api/swagger-doc/resources';
|
url = url + '/api/swagger-doc/resources';
|
||||||
window.swaggerUi = new SwaggerUi({
|
window.swaggerUi = new SwaggerUi({
|
||||||
discoveryUrl:url,
|
discoveryUrl:url,
|
||||||
@@ -73,6 +77,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 style="text-align: center">Authentication is required to access the REST API. Use HTTP Basic Authentication to authenticate yourself.</h3>
|
<h3 style="text-align: center">Authentication is required to access the REST API. Use HTTP Basic Authentication to authenticate yourself.</h3>
|
||||||
|
<h3 style="text-align: center">The base URL of the API is <a id="title-base-url-link"></a>.</h3>
|
||||||
<div id="swagger-ui-container" class="swagger-ui-wrap">
|
<div id="swagger-ui-container" class="swagger-ui-wrap">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user