POST api/mobile/ConfigDataAction
Создание, изменение, получение информации по конфигам приложения, по экранам в конфиге приложения, по компонентам на экране приложения
Request Information
URI Parameters
None.
Body Parameters
ConfigDataActionRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ActionType |
Тип действия (Info, Create, Update) |
string |
None. |
| EntityType |
Тип сущности, по которой необходимо произвести действие (Screen, Component) |
string |
None. |
| NoActive |
Признак НЕактивности сущности |
boolean |
None. |
| ScreenType |
Тип экрана |
string |
None. |
| ComponentType |
Тип компонента |
string |
None. |
| Description |
Описание сущности |
string |
None. |
| Name |
Наименование сущности |
string |
None. |
| ScreenId |
Идентификатор экрана |
integer |
None. |
| ComponentId |
Идентификатор компонента |
integer |
None. |
| Title |
Заголовок сущности |
string |
None. |
| MenuItemName |
Наименование экрана (пункта меню) в приложении |
string |
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,
"ScreenType": "sample string 3",
"ComponentType": "sample string 4",
"Description": "sample string 5",
"Name": "sample string 6",
"ScreenId": 1,
"ComponentId": 1,
"Title": "sample string 7",
"MenuItemName": "sample string 8",
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 9"
}
application/xml, text/xml
<ConfigDataActionRequest 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 9</SiteCode> <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token> <ActionType>sample string 1</ActionType> <ComponentId>1</ComponentId> <ComponentType>sample string 4</ComponentType> <Description>sample string 5</Description> <EntityType>sample string 2</EntityType> <MenuItemName>sample string 8</MenuItemName> <Name>sample string 6</Name> <NoActive>true</NoActive> <ScreenId>1</ScreenId> <ScreenType>sample string 3</ScreenType> <Title>sample string 7</Title> </ConfigDataActionRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ConfigDataActionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Screens |
Список экранов |
Collection of ConfigActionScreens |
None. |
| Components |
Список компонентов на экране |
Collection of ConfigActionComponents |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{
"Screens": [
{
"Id": 1,
"ScreenId": 1,
"Name": "sample string 1",
"ScreenType": "sample string 2",
"Description": "sample string 3",
"NoActive": true,
"Title": "sample string 4",
"MenuItemName": "sample string 5"
},
{
"Id": 1,
"ScreenId": 1,
"Name": "sample string 1",
"ScreenType": "sample string 2",
"Description": "sample string 3",
"NoActive": true,
"Title": "sample string 4",
"MenuItemName": "sample string 5"
}
],
"Components": [
{
"Id": 1,
"ComponentId": 1,
"Name": "sample string 1",
"ComponentType": "sample string 2",
"Description": "sample string 3",
"NoActive": true,
"Title": "sample string 4"
},
{
"Id": 1,
"ComponentId": 1,
"Name": "sample string 1",
"ComponentType": "sample string 2",
"Description": "sample string 3",
"NoActive": true,
"Title": "sample string 4"
}
],
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
<ConfigDataActionResponse 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>
<ConfigDataActionResponse.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>
<Title>sample string 4</Title>
</ConfigDataActionResponse.ConfigActionComponents>
<ConfigDataActionResponse.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>
<Title>sample string 4</Title>
</ConfigDataActionResponse.ConfigActionComponents>
</Components>
<Screens>
<ConfigDataActionResponse.ConfigActionScreens>
<Description>sample string 3</Description>
<Id>1</Id>
<MenuItemName>sample string 5</MenuItemName>
<Name>sample string 1</Name>
<NoActive>true</NoActive>
<ScreenId>1</ScreenId>
<ScreenType>sample string 2</ScreenType>
<Title>sample string 4</Title>
</ConfigDataActionResponse.ConfigActionScreens>
<ConfigDataActionResponse.ConfigActionScreens>
<Description>sample string 3</Description>
<Id>1</Id>
<MenuItemName>sample string 5</MenuItemName>
<Name>sample string 1</Name>
<NoActive>true</NoActive>
<ScreenId>1</ScreenId>
<ScreenType>sample string 2</ScreenType>
<Title>sample string 4</Title>
</ConfigDataActionResponse.ConfigActionScreens>
</Screens>
</ConfigDataActionResponse>