From c0f98ab4c8c4339806d3feabb69eeeacc14501af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean=20Traull=C3=A9?= Date: Sun, 26 Aug 2018 17:13:19 +0200 Subject: [PATCH] New REST API Explorer branding and improvements - Header of REST API Explorer has been Dolibarr colored - API Methods are now sorted alphabetically - API endpoints with same names are now sorted in this order (GET, POST, PUT, PATCH, DELETE) --- .../framework/Luracast/Restler/explorer/css/screen.css | 4 ++-- .../restler/framework/Luracast/Restler/explorer/index.html | 5 +++-- .../framework/Luracast/Restler/explorer/swagger-ui.js | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/htdocs/includes/restler/framework/Luracast/Restler/explorer/css/screen.css b/htdocs/includes/restler/framework/Luracast/Restler/explorer/css/screen.css index dc02468fdc0..ea3a4153c15 100644 --- a/htdocs/includes/restler/framework/Luracast/Restler/explorer/css/screen.css +++ b/htdocs/includes/restler/framework/Luracast/Restler/explorer/css/screen.css @@ -1231,7 +1231,7 @@ cursor: pointer; } .swagger-section #header { - background-color: #646257; + background-color: rgb(163, 188, 210); padding: 14px; } .swagger-section #input_baseUrl { @@ -1278,7 +1278,7 @@ font-size: 1.5em; font-weight: bold; text-decoration: none; - background: transparent url(../images/logo_small.png) no-repeat left center; + background: transparent url(../../../../theme/eldy/img/favicon.ico) no-repeat left center; padding: 20px 0 20px 40px; color: white; } diff --git a/htdocs/includes/restler/framework/Luracast/Restler/explorer/index.html b/htdocs/includes/restler/framework/Luracast/Restler/explorer/index.html index c73f1981cc9..01fb8ee2a0e 100644 --- a/htdocs/includes/restler/framework/Luracast/Restler/explorer/index.html +++ b/htdocs/includes/restler/framework/Luracast/Restler/explorer/index.html @@ -3,7 +3,7 @@ - Api Explorer + REST API Explorer @@ -73,6 +73,7 @@ docExpansion: "none", jsonEditor: false, apisSorter: "alpha", + operationsSorter: "alpha", defaultModelRendering: 'schema', showRequestHeaders: false }); @@ -126,7 +127,7 @@