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)
This commit is contained in:
Jean Traullé 2018-08-26 17:13:19 +02:00
parent 13255df4b7
commit c0f98ab4c8
No known key found for this signature in database
GPG Key ID: 5315BC7C950D912A
3 changed files with 7 additions and 6 deletions

View File

@ -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;
}

View File

@ -3,7 +3,7 @@
<html>
<head>
<meta charset="UTF-8">
<title>Api Explorer</title>
<title>REST API Explorer</title>
<link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
@ -73,6 +73,7 @@
docExpansion: "none",
jsonEditor: false,
apisSorter: "alpha",
operationsSorter: "alpha",
defaultModelRendering: 'schema',
showRequestHeaders: false
});
@ -126,7 +127,7 @@
<body class="swagger-section">
<div id='header'>
<div class="swagger-ui-wrap">
<a id="logo" href="#">API Explorer</a>
<a id="logo" href="#">Dolibarr REST API Explorer</a>
<form id='api_selector'>
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
<div class='input'><input placeholder="DOLAPIKEY" id="input_apiKey" name="apiKey" type="text"/></div>

View File

@ -1193,7 +1193,7 @@ var reservedApiTags = [
'path',
'tag'
];
var supportedOperationMethods = ['delete', 'get', 'head', 'options', 'patch', 'post', 'put'];
var supportedOperationMethods = ['head', 'options', 'get', 'post', 'put', 'patch', 'delete'];
var SwaggerClient = module.exports = function (url, options) {
this.authorizations = null;
this.authorizationScheme = null;
@ -26327,4 +26327,4 @@ SwaggerUi.Views.StatusCodeView = Backbone.View.extend({
}
return this;
}
});}).call(this);
});}).call(this);