GET api/AccessTree/ChildrenNodes/{id}
Поуровневое получение дерева ресурсов допуска
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Идентификатор ресурса, ноды которого надо отдать (если надо корневые - не передаём параметр) |
integer |
None. |
Body Parameters
None.
Response Information
Success Resource Description
Возвращает ресурс допуска
Collection of AccessTreeNodeChildOutViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
None. |
integer |
None. |
| ParentId |
Идентификатор родительской ноды |
integer |
None. |
| Name |
Имя ноды ресурса |
string |
None. |
| Approvers |
Cогласующие |
Collection of AccessSheetApproverOutViewModel |
None. |
| ExistChildren |
Есть вложенные элементы (ветвь без норматива) |
boolean |
None. |
| PlanTimeExecution |
Плановое время исполнения (мин.) |
integer |
None. |
Error Resource Description (Реализовано не везде)
OperationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Target |
Возвращаемый объект |
Object |
None. |
| Status |
Статус операции |
ResultStatus |
None. |
| Error |
Детализация ошибки |
Error |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"ParentId": 1,
"Name": "sample string 2",
"Approvers": [
{
"Id": 1,
"FullName": "sample string 2"
},
{
"Id": 1,
"FullName": "sample string 2"
}
],
"ExistChildren": true,
"PlanTimeExecution": 4
},
{
"Id": 1,
"ParentId": 1,
"Name": "sample string 2",
"Approvers": [
{
"Id": 1,
"FullName": "sample string 2"
},
{
"Id": 1,
"FullName": "sample string 2"
}
],
"ExistChildren": true,
"PlanTimeExecution": 4
}
]
text/html, multipart/form-data
Sample:
[{"Id":1,"ParentId":1,"Name":"sample string 2","Approvers":[{"Id":1,"FullName":"sample string 2"},{"Id":1,"FullName":"sample string 2"}],"ExistChildren":true,"PlanTimeExecution":4},{"Id":1,"ParentId":1,"Name":"sample string 2","Approvers":[{"Id":1,"FullName":"sample string 2"},{"Id":1,"FullName":"sample string 2"}],"ExistChildren":true,"PlanTimeExecution":4}]
application/xml, text/xml
Sample:
<ArrayOfAccessTreeNodeChildOutViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.AccessTree">
<AccessTreeNodeChildOutViewModel>
<Approvers>
<AccessSheetApproverOutViewModel>
<FullName>sample string 2</FullName>
<Id>1</Id>
</AccessSheetApproverOutViewModel>
<AccessSheetApproverOutViewModel>
<FullName>sample string 2</FullName>
<Id>1</Id>
</AccessSheetApproverOutViewModel>
</Approvers>
<ExistChildren>true</ExistChildren>
<Id>1</Id>
<Name>sample string 2</Name>
<ParentId>1</ParentId>
<PlanTimeExecution>4</PlanTimeExecution>
</AccessTreeNodeChildOutViewModel>
<AccessTreeNodeChildOutViewModel>
<Approvers>
<AccessSheetApproverOutViewModel>
<FullName>sample string 2</FullName>
<Id>1</Id>
</AccessSheetApproverOutViewModel>
<AccessSheetApproverOutViewModel>
<FullName>sample string 2</FullName>
<Id>1</Id>
</AccessSheetApproverOutViewModel>
</Approvers>
<ExistChildren>true</ExistChildren>
<Id>1</Id>
<Name>sample string 2</Name>
<ParentId>1</ParentId>
<PlanTimeExecution>4</PlanTimeExecution>
</AccessTreeNodeChildOutViewModel>
</ArrayOfAccessTreeNodeChildOutViewModel>
