Branding
Branding
The branding
endpoint shows the configured branding.
GET /api/branding
Retrieve a JSON of configured branding.
Response Content
If no branding has been configured, a HTTP 204 no-content is returned.
Otherwise the response will be a JSON object, with branding
as the key, and the value consisting of the
following information in JSON.
Key | Type | Description |
---|---|---|
brand_name |
Integer | Boolean value indicating whether repatcha is enabled. |
client_habitat |
JSON | The configured client habitat information. Currently unused. |
Examples
Request:
curl 'http://localhost/jarvis-agent/n2fe/api/branding' -H 'Cookie: N2FE_CGISESSID=4876c530f3d7252330a95ea51007f252'
Response:
{
"branding":{
"brand_name":"localhost",
"client_habitat":{
}
}
}
GET /api/branding?css
Retrieve custom css from the configured branding.
Response Content
if no CSS is configured in the branding, a HTTP 204 no-content is returned.
Otherwise a CSS file is returned.
Examples
Request:
curl 'http://localhost/jarvis-agent/n2fe/api/branding?css' -H 'Cookie: N2FE_CGISESSID=4876c530f3d7252330a95ea51007f252'
Response:
/*
* For the header
*/
.navbar-inverse {
background: #131834 url("/n2fe/localisation/branding/localhost/logo-dark-background.png") no-repeat;
background-size: contain;
}
.navbar-inverse .navbar-brand {
color: #009FEE;
}
.navbar-inverse .navbar-header {
padding-left: 160px;
}
.navbar-inverse .navbar-nav>li>a {
color: #ffffff;
}
span.navbar-brand:hover {
color: #ffffff !important;
}
/*
* For a custom Logo
*/
.login-modal-logo {
margin-left:20px;
background-image: url(/n2fe/localisation/branding/localhost/logo.png);
background-repeat: no-repeat;
background-position: left top;
}
...