GET api/workNormative/requestTypes/{requestTypeId}/jobTypes

Список активных видов работ для заданного типа заявки

Request Information

URI Parameters

NameDescriptionTypeAdditional information
requestTypeId

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

integer

Required

Body Parameters

None.

Response Information

Success Resource Description

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

Collection of JobTypeViewModel
NameDescriptionTypeAdditional information
Id

Код вида рвбот

integer

None.

RequestTypeId

ссылка на тип заявки

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,
    "RequestTypeId": 2,
    "Name": "sample string 3"
  },
  {
    "Id": 1,
    "RequestTypeId": 2,
    "Name": "sample string 3"
  }
]

text/html, multipart/form-data

Sample:
[{"Id":1,"RequestTypeId":2,"Name":"sample string 3"},{"Id":1,"RequestTypeId":2,"Name":"sample string 3"}]

application/xml, text/xml

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