GET api/workNormative/requestTypes/{id}

Тип заявки с идентификатором Id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

идентификатор типа заявки

integer

Required

Body Parameters

None.

Response Information

Success Resource Description

Возвращает тип заявки

RequestTypeViewModel
NameDescriptionTypeAdditional information
Id

Код типа заявки

integer

None.

CategoryId

ссылка на категорию заявки

integer

None.

Name

Наименование типа заявки

string

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,
  "CategoryId": 2,
  "Name": "sample string 3"
}

text/html, multipart/form-data

Sample:
{"Id":1,"CategoryId":2,"Name":"sample string 3"}

application/xml, text/xml

Sample:
<RequestTypeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.WorkNormative">
  <CategoryId>2</CategoryId>
  <Id>1</Id>
  <Name>sample string 3</Name>
</RequestTypeViewModel>