POST api/mobile/ConfigAction
Создание, изменение, получение информации по конфигам приложения, по экранам в конфиге приложения, по компонентам на экране приложения
Request Information
URI Parameters
None.
Body Parameters
ConfigActionRequestName | Description | Type | Additional information |
---|---|---|---|
ActionType |
Тип действия (Info, Create, Update) |
string |
None. |
EntityType |
Типа сущности, по которой необходимо произвести действие (Config, Screen, Component, ScreenConfig) |
string |
None. |
NoActive |
Признак НЕактивности сущности |
boolean |
None. |
Active |
Признак активности сущности |
boolean |
None. |
ScreenType |
Тип экрана |
string |
None. |
ComponentType |
Тип компонента |
string |
None. |
Description |
Описание сущности |
string |
None. |
Name |
Наименование сущности |
string |
None. |
ScreenId |
Идентификатор экрана |
integer |
None. |
ComponentId |
Идентификатор компонента |
integer |
None. |
ScreenConfigId |
Идентфикатор связки компонетов и экрана |
integer |
None. |
Config |
Идентификтаор конфига |
integer |
None. |
Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{ "ActionType": "sample string 1", "EntityType": "sample string 2", "NoActive": true, "Active": true, "ScreenType": "sample string 3", "ComponentType": "sample string 4", "Description": "sample string 5", "Name": "sample string 6", "ScreenId": 1, "ComponentId": 1, "ScreenConfigId": 1, "Config": 1, "Operator": 1, "Token": 1, "SiteCode": "sample string 7" }
application/xml, text/xml
<ConfigActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.MobileRequest"> <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator> <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 7</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <ActionType>sample string 1</ActionType> <Active>true</Active> <ComponentId>1</ComponentId> <ComponentType>sample string 4</ComponentType> <Config>1</Config> <Description>sample string 5</Description> <EntityType>sample string 2</EntityType> <Name>sample string 6</Name> <NoActive>true</NoActive> <ScreenConfigId>1</ScreenConfigId> <ScreenId>1</ScreenId> <ScreenType>sample string 3</ScreenType> </ConfigActionRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ConfigActionResponseName | Description | Type | Additional information |
---|---|---|---|
Config |
Идентификтаор конфига |
integer |
None. |
Configs |
Список конфигов |
Collection of ConfigActionConfigs |
None. |
Screens |
Список экранов |
Collection of ConfigActionScreens |
None. |
Components |
Список компонентов на экране |
Collection of ConfigActionComponents |
None. |
ScreensComponents |
Структура связей компонентов и экранов |
Collection of ConfigActionScreensComponents |
None. |
ErrorCode |
Код ошибки |
integer |
None. |
Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{ "Config": 1, "Configs": [ { "Id": 1, "ConfigId": 1, "Name": "sample string 1", "NoActive": true }, { "Id": 1, "ConfigId": 1, "Name": "sample string 1", "NoActive": true } ], "Screens": [ { "Id": 1, "ScreenId": 1, "Name": "sample string 1", "ScreenType": "sample string 2", "Description": "sample string 3", "NoActive": true }, { "Id": 1, "ScreenId": 1, "Name": "sample string 1", "ScreenType": "sample string 2", "Description": "sample string 3", "NoActive": true } ], "Components": [ { "Id": 1, "ComponentId": 1, "Name": "sample string 1", "ComponentType": "sample string 2", "Description": "sample string 3", "NoActive": true }, { "Id": 1, "ComponentId": 1, "Name": "sample string 1", "ComponentType": "sample string 2", "Description": "sample string 3", "NoActive": true } ], "ScreensComponents": [ { "Id": 1, "ScreenComponentId": 1, "ComponentId": 1, "ComponentName": "sample string 1", "ComponentType": "sample string 2", "ComponentDescription": "sample string 3", "ScreenId": 1, "ScreenName": "sample string 4", "ScreenType": "sample string 5", "ScreenDescription": "sample string 6", "NoActive": true }, { "Id": 1, "ScreenComponentId": 1, "ComponentId": 1, "ComponentName": "sample string 1", "ComponentType": "sample string 2", "ComponentDescription": "sample string 3", "ScreenId": 1, "ScreenName": "sample string 4", "ScreenType": "sample string 5", "ScreenDescription": "sample string 6", "NoActive": true } ], "ErrorCode": 1, "Message": "sample string 2" }
application/xml, text/xml
<ConfigActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.MobileResponse"> <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode> <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message> <Components> <ConfigActionResponse.ConfigActionComponents> <ComponentId>1</ComponentId> <ComponentType>sample string 2</ComponentType> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 1</Name> <NoActive>true</NoActive> </ConfigActionResponse.ConfigActionComponents> <ConfigActionResponse.ConfigActionComponents> <ComponentId>1</ComponentId> <ComponentType>sample string 2</ComponentType> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 1</Name> <NoActive>true</NoActive> </ConfigActionResponse.ConfigActionComponents> </Components> <Config>1</Config> <Configs> <ConfigActionResponse.ConfigActionConfigs> <ConfigId>1</ConfigId> <Id>1</Id> <Name>sample string 1</Name> <NoActive>true</NoActive> </ConfigActionResponse.ConfigActionConfigs> <ConfigActionResponse.ConfigActionConfigs> <ConfigId>1</ConfigId> <Id>1</Id> <Name>sample string 1</Name> <NoActive>true</NoActive> </ConfigActionResponse.ConfigActionConfigs> </Configs> <Screens> <ConfigActionResponse.ConfigActionScreens> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 1</Name> <NoActive>true</NoActive> <ScreenId>1</ScreenId> <ScreenType>sample string 2</ScreenType> </ConfigActionResponse.ConfigActionScreens> <ConfigActionResponse.ConfigActionScreens> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 1</Name> <NoActive>true</NoActive> <ScreenId>1</ScreenId> <ScreenType>sample string 2</ScreenType> </ConfigActionResponse.ConfigActionScreens> </Screens> <ScreensComponents> <ConfigActionResponse.ConfigActionScreensComponents> <ComponentDescription>sample string 3</ComponentDescription> <ComponentId>1</ComponentId> <ComponentName>sample string 1</ComponentName> <ComponentType>sample string 2</ComponentType> <Id>1</Id> <NoActive>true</NoActive> <ScreenComponentId>1</ScreenComponentId> <ScreenDescription>sample string 6</ScreenDescription> <ScreenId>1</ScreenId> <ScreenName>sample string 4</ScreenName> <ScreenType>sample string 5</ScreenType> </ConfigActionResponse.ConfigActionScreensComponents> <ConfigActionResponse.ConfigActionScreensComponents> <ComponentDescription>sample string 3</ComponentDescription> <ComponentId>1</ComponentId> <ComponentName>sample string 1</ComponentName> <ComponentType>sample string 2</ComponentType> <Id>1</Id> <NoActive>true</NoActive> <ScreenComponentId>1</ScreenComponentId> <ScreenDescription>sample string 6</ScreenDescription> <ScreenId>1</ScreenId> <ScreenName>sample string 4</ScreenName> <ScreenType>sample string 5</ScreenType> </ConfigActionResponse.ConfigActionScreensComponents> </ScreensComponents> </ConfigActionResponse>