GET api/AccessSheet/{id}

Получение листа допуска

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Идентификатор листа

integer

Required

Body Parameters

None.

Response Information

Success Resource Description

Возвращает лист допуска

AccessSheetOutViewModel
NameDescriptionTypeAdditional information
Id

Уникальный идентификатор листа допуска

integer

None.

CreateDate

Дата создания

date

None.

Initiator

Инициатор

UserNameViewModel

None.

Status

Статус листа допуска

AccessSheetStatus

None.

CanRateRequests

Можно оценить заявки

boolean

None.

TreeNodes

Ресурсы доступа

Collection of SheetTreeNodeOutViewModel

None.

Error Resource Description (Реализовано не везде)

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CreateDate": "2022-08-17T03:42:01+03:00",
  "Initiator": {
    "Id": 1,
    "Login": "sample string 2",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "RegionId": 5,
    "Appoint": "sample string 6",
    "Organization": "sample string 7"
  },
  "Status": null,
  "CanRateRequests": true,
  "TreeNodes": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Approvers": [
        {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        },
        {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        }
      ],
      "AccessRequests": [
        {
          "RequestId": 1,
          "AccessUserName": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "Contractor": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "PlanTimeExecutionTime": 2,
          "FactTimeExecution": 3,
          "RequestCustomFields": [
            {
              "CustomFieldId": 1,
              "CustomFieldValue": "sample string 2"
            },
            {
              "CustomFieldId": 1,
              "CustomFieldValue": "sample string 2"
            }
          ]
        },
        {
          "RequestId": 1,
          "AccessUserName": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "Contractor": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "PlanTimeExecutionTime": 2,
          "FactTimeExecution": 3,
          "RequestCustomFields": [
            {
              "CustomFieldId": 1,
              "CustomFieldValue": "sample string 2"
            },
            {
              "CustomFieldId": 1,
              "CustomFieldValue": "sample string 2"
            }
          ]
        }
      ],
      "WorkNormativeId": 1,
      "TreeNodeCustomFields": [
        {
          "CustomFieldId": 1,
          "CustomFieldName": "sample string 2",
          "CustomFieldTypeId": 3
        },
        {
          "CustomFieldId": 1,
          "CustomFieldName": "sample string 2",
          "CustomFieldTypeId": 3
        }
      ]
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Approvers": [
        {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        },
        {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        }
      ],
      "AccessRequests": [
        {
          "RequestId": 1,
          "AccessUserName": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "Contractor": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "PlanTimeExecutionTime": 2,
          "FactTimeExecution": 3,
          "RequestCustomFields": [
            {
              "CustomFieldId": 1,
              "CustomFieldValue": "sample string 2"
            },
            {
              "CustomFieldId": 1,
              "CustomFieldValue": "sample string 2"
            }
          ]
        },
        {
          "RequestId": 1,
          "AccessUserName": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "Contractor": {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          },
          "PlanTimeExecutionTime": 2,
          "FactTimeExecution": 3,
          "RequestCustomFields": [
            {
              "CustomFieldId": 1,
              "CustomFieldValue": "sample string 2"
            },
            {
              "CustomFieldId": 1,
              "CustomFieldValue": "sample string 2"
            }
          ]
        }
      ],
      "WorkNormativeId": 1,
      "TreeNodeCustomFields": [
        {
          "CustomFieldId": 1,
          "CustomFieldName": "sample string 2",
          "CustomFieldTypeId": 3
        },
        {
          "CustomFieldId": 1,
          "CustomFieldName": "sample string 2",
          "CustomFieldTypeId": 3
        }
      ]
    }
  ]
}

text/html, multipart/form-data

Sample:
{"Id":1,"CreateDate":"2022-08-17T03:42:01+03:00","Initiator":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Status":null,"CanRateRequests":true,"TreeNodes":[{"Id":1,"Name":"sample string 2","Approvers":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"AccessRequests":[{"RequestId":1,"AccessUserName":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Contractor":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"PlanTimeExecutionTime":2,"FactTimeExecution":3,"RequestCustomFields":[{"CustomFieldId":1,"CustomFieldValue":"sample string 2"},{"CustomFieldId":1,"CustomFieldValue":"sample string 2"}]},{"RequestId":1,"AccessUserName":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Contractor":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"PlanTimeExecutionTime":2,"FactTimeExecution":3,"RequestCustomFields":[{"CustomFieldId":1,"CustomFieldValue":"sample string 2"},{"CustomFieldId":1,"CustomFieldValue":"sample string 2"}]}],"WorkNormativeId":1,"TreeNodeCustomFields":[{"CustomFieldId":1,"CustomFieldName":"sample string 2","CustomFieldTypeId":3},{"CustomFieldId":1,"CustomFieldName":"sample string 2","CustomFieldTypeId":3}]},{"Id":1,"Name":"sample string 2","Approvers":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"AccessRequests":[{"RequestId":1,"AccessUserName":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Contractor":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"PlanTimeExecutionTime":2,"FactTimeExecution":3,"RequestCustomFields":[{"CustomFieldId":1,"CustomFieldValue":"sample string 2"},{"CustomFieldId":1,"CustomFieldValue":"sample string 2"}]},{"RequestId":1,"AccessUserName":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"Contractor":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"PlanTimeExecutionTime":2,"FactTimeExecution":3,"RequestCustomFields":[{"CustomFieldId":1,"CustomFieldValue":"sample string 2"},{"CustomFieldId":1,"CustomFieldValue":"sample string 2"}]}],"WorkNormativeId":1,"TreeNodeCustomFields":[{"CustomFieldId":1,"CustomFieldName":"sample string 2","CustomFieldTypeId":3},{"CustomFieldId":1,"CustomFieldName":"sample string 2","CustomFieldTypeId":3}]}]}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.