POST api/ComponentLayer/AddComponentWindow
Request Information
URI Parameters
None.
Body Parameters
ComponentLayerViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ComponentWindowLevels | Collection of ComponentLayerDetailViewModel |
None. |
|
| ComponentNames | Collection of LookupDto |
None. |
|
| ComponentLayer | ComponentLayerDetailViewModel |
None. |
|
| Message | string |
None. |
|
| Success | boolean |
None. |
|
| CreateNewButton | CommandButtonDto |
None. |
|
| ChangeNameButton | CommandButtonDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"createNewButton": {
"visible": true,
"enabled": true,
"caption": "sample string 3"
},
"changeNameButton": {
"visible": true,
"enabled": true,
"caption": "sample string 3"
},
"componentWindowLevels": [
{
"stairIndex": 1,
"levelName": "sample string 2",
"componentWindowName": "sample string 3",
"componentWindowId": 4,
"rowIndex": 5,
"newComponentWindowName": "sample string 6"
},
{
"stairIndex": 1,
"levelName": "sample string 2",
"componentWindowName": "sample string 3",
"componentWindowId": 4,
"rowIndex": 5,
"newComponentWindowName": "sample string 6"
}
],
"componentNames": [
{
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "fc4f2da7-8f89-49a7-b53e-02568d2bcc3d",
"parentUid": "30163b75-abe4-4b82-816d-cb405d1aba2b",
"clientDefaultContactUid": "4a183c4e-1429-4ae8-b980-6d050a1b8771"
},
{
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "fc4f2da7-8f89-49a7-b53e-02568d2bcc3d",
"parentUid": "30163b75-abe4-4b82-816d-cb405d1aba2b",
"clientDefaultContactUid": "4a183c4e-1429-4ae8-b980-6d050a1b8771"
}
],
"componentLayer": {
"stairIndex": 1,
"levelName": "sample string 2",
"componentWindowName": "sample string 3",
"componentWindowId": 4,
"rowIndex": 5,
"newComponentWindowName": "sample string 6"
},
"message": "sample string 1",
"success": true
}
application/xml, text/xml
Sample:
<ComponentLayerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
<ChangeNameButton xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls">
<d2p1:Caption>sample string 3</d2p1:Caption>
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:Visible>true</d2p1:Visible>
</ChangeNameButton>
<ComponentLayer>
<ComponentWindowId>4</ComponentWindowId>
<ComponentWindowName>sample string 3</ComponentWindowName>
<LevelName>sample string 2</LevelName>
<NewComponentWindowName>sample string 6</NewComponentWindowName>
<RowIndex>5</RowIndex>
<StairIndex>1</StairIndex>
</ComponentLayer>
<ComponentNames xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto">
<d2p1:LookupDto>
<d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>4a183c4e-1429-4ae8-b980-6d050a1b8771</d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField>
<d2p1:_x003C_ParentUid_x003E_k__BackingField>30163b75-abe4-4b82-816d-cb405d1aba2b</d2p1:_x003C_ParentUid_x003E_k__BackingField>
<d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField>
<d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField>
<d2p1:_x003C_UniqueId_x003E_k__BackingField>fc4f2da7-8f89-49a7-b53e-02568d2bcc3d</d2p1:_x003C_UniqueId_x003E_k__BackingField>
</d2p1:LookupDto>
<d2p1:LookupDto>
<d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>4a183c4e-1429-4ae8-b980-6d050a1b8771</d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField>
<d2p1:_x003C_ParentUid_x003E_k__BackingField>30163b75-abe4-4b82-816d-cb405d1aba2b</d2p1:_x003C_ParentUid_x003E_k__BackingField>
<d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField>
<d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField>
<d2p1:_x003C_UniqueId_x003E_k__BackingField>fc4f2da7-8f89-49a7-b53e-02568d2bcc3d</d2p1:_x003C_UniqueId_x003E_k__BackingField>
</d2p1:LookupDto>
</ComponentNames>
<ComponentWindowLevels>
<ComponentLayerDetailViewModel>
<ComponentWindowId>4</ComponentWindowId>
<ComponentWindowName>sample string 3</ComponentWindowName>
<LevelName>sample string 2</LevelName>
<NewComponentWindowName>sample string 6</NewComponentWindowName>
<RowIndex>5</RowIndex>
<StairIndex>1</StairIndex>
</ComponentLayerDetailViewModel>
<ComponentLayerDetailViewModel>
<ComponentWindowId>4</ComponentWindowId>
<ComponentWindowName>sample string 3</ComponentWindowName>
<LevelName>sample string 2</LevelName>
<NewComponentWindowName>sample string 6</NewComponentWindowName>
<RowIndex>5</RowIndex>
<StairIndex>1</StairIndex>
</ComponentLayerDetailViewModel>
</ComponentWindowLevels>
<CreateNewButton xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls">
<d2p1:Caption>sample string 3</d2p1:Caption>
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:Visible>true</d2p1:Visible>
</CreateNewButton>
<Message>sample string 1</Message>
<Success>true</Success>
</ComponentLayerViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ComponentLayerViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ComponentWindowLevels | Collection of ComponentLayerDetailViewModel |
None. |
|
| ComponentNames | Collection of LookupDto |
None. |
|
| ComponentLayer | ComponentLayerDetailViewModel |
None. |
|
| Message | string |
None. |
|
| Success | boolean |
None. |
|
| CreateNewButton | CommandButtonDto |
None. |
|
| ChangeNameButton | CommandButtonDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"createNewButton": {
"visible": true,
"enabled": true,
"caption": "sample string 3"
},
"changeNameButton": {
"visible": true,
"enabled": true,
"caption": "sample string 3"
},
"componentWindowLevels": [
{
"stairIndex": 1,
"levelName": "sample string 2",
"componentWindowName": "sample string 3",
"componentWindowId": 4,
"rowIndex": 5,
"newComponentWindowName": "sample string 6"
},
{
"stairIndex": 1,
"levelName": "sample string 2",
"componentWindowName": "sample string 3",
"componentWindowId": 4,
"rowIndex": 5,
"newComponentWindowName": "sample string 6"
}
],
"componentNames": [
{
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "b1e3ae7a-535c-4a3a-a742-0d65321c5af0",
"parentUid": "a577d422-a29b-4c48-916b-c8e6f9716617",
"clientDefaultContactUid": "255cd4b7-93a6-4c9f-b77f-b67cceaf6b97"
},
{
"id": 1,
"idString": "sample string 2",
"name": "sample string 3",
"parentId": "sample string 4",
"description": "sample string 5",
"selected": true,
"sortIndex": 7,
"uniqueId": "b1e3ae7a-535c-4a3a-a742-0d65321c5af0",
"parentUid": "a577d422-a29b-4c48-916b-c8e6f9716617",
"clientDefaultContactUid": "255cd4b7-93a6-4c9f-b77f-b67cceaf6b97"
}
],
"componentLayer": {
"stairIndex": 1,
"levelName": "sample string 2",
"componentWindowName": "sample string 3",
"componentWindowId": 4,
"rowIndex": 5,
"newComponentWindowName": "sample string 6"
},
"message": "sample string 1",
"success": true
}
application/xml, text/xml
Sample:
<ComponentLayerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
<ChangeNameButton xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls">
<d2p1:Caption>sample string 3</d2p1:Caption>
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:Visible>true</d2p1:Visible>
</ChangeNameButton>
<ComponentLayer>
<ComponentWindowId>4</ComponentWindowId>
<ComponentWindowName>sample string 3</ComponentWindowName>
<LevelName>sample string 2</LevelName>
<NewComponentWindowName>sample string 6</NewComponentWindowName>
<RowIndex>5</RowIndex>
<StairIndex>1</StairIndex>
</ComponentLayer>
<ComponentNames xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto">
<d2p1:LookupDto>
<d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>255cd4b7-93a6-4c9f-b77f-b67cceaf6b97</d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField>
<d2p1:_x003C_ParentUid_x003E_k__BackingField>a577d422-a29b-4c48-916b-c8e6f9716617</d2p1:_x003C_ParentUid_x003E_k__BackingField>
<d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField>
<d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField>
<d2p1:_x003C_UniqueId_x003E_k__BackingField>b1e3ae7a-535c-4a3a-a742-0d65321c5af0</d2p1:_x003C_UniqueId_x003E_k__BackingField>
</d2p1:LookupDto>
<d2p1:LookupDto>
<d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>255cd4b7-93a6-4c9f-b77f-b67cceaf6b97</d2p1:_x003C_ClientDefaultContactUid_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>sample string 5</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IdString_x003E_k__BackingField>sample string 2</d2p1:_x003C_IdString_x003E_k__BackingField>
<d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField>
<d2p1:_x003C_Name_x003E_k__BackingField>sample string 3</d2p1:_x003C_Name_x003E_k__BackingField>
<d2p1:_x003C_ParentId_x003E_k__BackingField>sample string 4</d2p1:_x003C_ParentId_x003E_k__BackingField>
<d2p1:_x003C_ParentUid_x003E_k__BackingField>a577d422-a29b-4c48-916b-c8e6f9716617</d2p1:_x003C_ParentUid_x003E_k__BackingField>
<d2p1:_x003C_Selected_x003E_k__BackingField>true</d2p1:_x003C_Selected_x003E_k__BackingField>
<d2p1:_x003C_SortIndex_x003E_k__BackingField>7</d2p1:_x003C_SortIndex_x003E_k__BackingField>
<d2p1:_x003C_UniqueId_x003E_k__BackingField>b1e3ae7a-535c-4a3a-a742-0d65321c5af0</d2p1:_x003C_UniqueId_x003E_k__BackingField>
</d2p1:LookupDto>
</ComponentNames>
<ComponentWindowLevels>
<ComponentLayerDetailViewModel>
<ComponentWindowId>4</ComponentWindowId>
<ComponentWindowName>sample string 3</ComponentWindowName>
<LevelName>sample string 2</LevelName>
<NewComponentWindowName>sample string 6</NewComponentWindowName>
<RowIndex>5</RowIndex>
<StairIndex>1</StairIndex>
</ComponentLayerDetailViewModel>
<ComponentLayerDetailViewModel>
<ComponentWindowId>4</ComponentWindowId>
<ComponentWindowName>sample string 3</ComponentWindowName>
<LevelName>sample string 2</LevelName>
<NewComponentWindowName>sample string 6</NewComponentWindowName>
<RowIndex>5</RowIndex>
<StairIndex>1</StairIndex>
</ComponentLayerDetailViewModel>
</ComponentWindowLevels>
<CreateNewButton xmlns:d2p1="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.Dto.Controls">
<d2p1:Caption>sample string 3</d2p1:Caption>
<d2p1:Enabled>true</d2p1:Enabled>
<d2p1:Visible>true</d2p1:Visible>
</CreateNewButton>
<Message>sample string 1</Message>
<Success>true</Success>
</ComponentLayerViewModel>