GET api/documents/{level}/{categoryName}/{departmentId}

Get available templates for for the selected level and category.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
level

Document template level.

DocumentTemplateLevelDTO

Required

categoryName

Category name.

string

Required

departmentId

Department ID, when fetching a list of available department-level templates.

integer

None.

Body Parameters

None.

Response Information

Resource Description

DocumentTemplateAvialableNameDTO
NameDescriptionTypeAdditional information
text

Template name.

string

None.

value

ID uniquiely identifying the template.

integer

None.

Code

Template code.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "text": "sample string 1",
  "value": 2,
  "Code": "sample string 3"
}

text/html

Sample:
{"text":"sample string 1","value":2,"Code":"sample string 3"}

application/xml, text/xml

Sample:
<DocumentTemplateAvialableNameDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <Code>sample string 3</Code>
  <text>sample string 1</text>
  <value>2</value>
</DocumentTemplateAvialableNameDTO>