Platform API

<back to all web services

GetThemeSettings

Get all theme settings for the appliance and current context including title, colours and footer settings

The following routes are available for this service:
All Verbs/api/themesettings
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Get all theme settings for the appliance and current context including title, colours and footer settings
    */
    @Api(Description="Get all theme settings for the appliance and current context including title, colours and footer settings")
    public static class GetThemeSettings implements IPublicServiceModel
    {
        /**
        * Appliance to retrieve theme settings for
        */
        @ApiMember(Description="Appliance to retrieve theme settings for", Name="ApplianceId")
        public UUID ApplianceId = null;

        public String SubdomainName = null;
        
        public UUID getApplianceId() { return ApplianceId; }
        public GetThemeSettings setApplianceId(UUID value) { this.ApplianceId = value; return this; }
        public String getSubdomainName() { return SubdomainName; }
        public GetThemeSettings setSubdomainName(String value) { this.SubdomainName = value; return this; }
    }

    @ApiResponse(Description="List of settings")
    public static class GetSettingsResponse
    {
        public ArrayList<SettingModel> Settings = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<SettingModel> getSettings() { return Settings; }
        public GetSettingsResponse setSettings(ArrayList<SettingModel> value) { this.Settings = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public GetSettingsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class SettingModel
    {
        public UUID SettingId = null;
        public String SettingName = null;
        public String SettingValue = null;
        
        public UUID getSettingId() { return SettingId; }
        public SettingModel setSettingId(UUID value) { this.SettingId = value; return this; }
        public String getSettingName() { return SettingName; }
        public SettingModel setSettingName(String value) { this.SettingName = value; return this; }
        public String getSettingValue() { return SettingValue; }
        public SettingModel setSettingValue(String value) { this.SettingValue = value; return this; }
    }

}

Java GetThemeSettings DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/themesettings HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ApplianceId":"00000000-0000-0000-0000-000000000000","SubdomainName":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Settings":[{"SettingId":"00000000-0000-0000-0000-000000000000","SettingName":"String","SettingValue":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}