From e90747fd084a7a1db1aed0a839adda2b06183250 Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 1 Aug 2013 14:29:09 +0200 Subject: [PATCH] display the base url statically --- src/main/webapp/api/css/custom.css | 4 ++++ src/main/webapp/api/index.html | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/main/webapp/api/css/custom.css b/src/main/webapp/api/css/custom.css index 615f4698..e299efe0 100644 --- a/src/main/webapp/api/css/custom.css +++ b/src/main/webapp/api/css/custom.css @@ -18,4 +18,8 @@ .signature-container .description ul { margin-left: 20px; list-style: disc; +} + +.footer { + display: none; } \ No newline at end of file diff --git a/src/main/webapp/api/index.html b/src/main/webapp/api/index.html index cc9714fa..449e09a6 100644 --- a/src/main/webapp/api/index.html +++ b/src/main/webapp/api/index.html @@ -25,6 +25,10 @@ } url = url.substring(0, url.length - 1); 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'; window.swaggerUi = new SwaggerUi({ discoveryUrl:url, @@ -73,6 +77,7 @@

Authentication is required to access the REST API. Use HTTP Basic Authentication to authenticate yourself.

+

The base URL of the API is .