Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Get

Description

Returns a specific service setting.

Note

Service settings are cached for 10 minutes, so any updates may not be part of the list until the cache is refreshed.

Package Details

Interface

IServiceSettingManager

Syntax

ServiceSettingManager.Get(int serviceId, string key, bool useDefaults = true);

Returns

Task<ServiceSetting>

API

GET
/api/v1/services/{id}/service-settings

Parameters

Path
id: The service id associated to the service setting

Query string
key: The service setting key
useDefault: True if you want to use the default value if the key isn't found for the given service. False to not use any default value.

Returns

200 OK - Service Setting

Example

const int serviceId = 11;
const string key = "your key";
var serviceSetting = await _serviceSettingManager.Get(serviceId, key);

  • No labels