Overview
Runs LessPHP for a platform and a theme and outputs the compiled CSS. It only allows to preview the theme because
the file is not saved on the server.
Request Arguments
| Name |
Type |
Description |
Required |
| platform |
String |
The theme platform - /themes/clients/***PLATFORM***/themeName/. Accepted values are 'base' and 'portal'. |
No. (defaults to base) |
| themeName |
String |
The theme name - /themes/clients/platform/***THEMENAME***/. |
No. (defaults to default) |
| min |
Boolean |
Whether or not to minify the css |
No. (defaults to false) |
Request
{
platform: 'portal',
themeName: 'default',
min: false
}
Response Arguments
Response
Content-type: text/css
.someClass {
any-property: any-value;
}
Change Log
| Version |
Change |
|
v10
|
Added /css/preview GET endpoint.
|