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:
parent
13255df4b7
commit
c0f98ab4c8
@ -1231,7 +1231,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.swagger-section #header {
|
.swagger-section #header {
|
||||||
background-color: #646257;
|
background-color: rgb(163, 188, 210);
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
}
|
}
|
||||||
.swagger-section #input_baseUrl {
|
.swagger-section #input_baseUrl {
|
||||||
@ -1278,7 +1278,7 @@
|
|||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
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;
|
padding: 20px 0 20px 40px;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<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/typography.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||||
<link href='css/reset.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'/>
|
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||||
@ -73,6 +73,7 @@
|
|||||||
docExpansion: "none",
|
docExpansion: "none",
|
||||||
jsonEditor: false,
|
jsonEditor: false,
|
||||||
apisSorter: "alpha",
|
apisSorter: "alpha",
|
||||||
|
operationsSorter: "alpha",
|
||||||
defaultModelRendering: 'schema',
|
defaultModelRendering: 'schema',
|
||||||
showRequestHeaders: false
|
showRequestHeaders: false
|
||||||
});
|
});
|
||||||
@ -126,7 +127,7 @@
|
|||||||
<body class="swagger-section">
|
<body class="swagger-section">
|
||||||
<div id='header'>
|
<div id='header'>
|
||||||
<div class="swagger-ui-wrap">
|
<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'>
|
<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="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>
|
<div class='input'><input placeholder="DOLAPIKEY" id="input_apiKey" name="apiKey" type="text"/></div>
|
||||||
|
|||||||
@ -1193,7 +1193,7 @@ var reservedApiTags = [
|
|||||||
'path',
|
'path',
|
||||||
'tag'
|
'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) {
|
var SwaggerClient = module.exports = function (url, options) {
|
||||||
this.authorizations = null;
|
this.authorizations = null;
|
||||||
this.authorizationScheme = null;
|
this.authorizationScheme = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user