GET Api/ContractTemplates/GetForParent/{organizationalUnitId}/{currentPage}/{itemsPerPage}
Pobiera listę wszystkich obiektów ContractTemplate
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
organizationalUnitId |
identyfikator obiektu nadrzędnego OrganizationalUnit |
integer |
Required |
currentPage |
numer aktualnej strony |
integer |
Default value is 0 |
itemsPerPage |
ilość elementów na stronie |
integer |
Default value is 2147483647 |
Body Parameters
None.
Response Information
Resource Description
lista wszystkich obiektów ContractTemplate w bazie danych
Collection of ContractTemplateDtoName | Description | Type | Additional information |
---|---|---|---|
ContractTemplateId | integer |
Required |
|
Name | string |
Required |
|
TypeOfContractId | integer |
None. |
|
Content | string |
Required |
|
PdfGeneratorTemplate | string |
Required |
|
OrganizationalUnitId | integer |
Required |
|
NumberFormat | string |
None. |
|
NumberResetType | NumberResetType |
None. |
|
TwoSidedPrint | boolean |
None. |
|
PrintFooter | boolean |
None. |
|
Footer | string |
None. |
|
ContractAttributes | Collection of integer |
None. |
|
AssignedContractDocuments | Collection of integer |
None. |
|
TypeOfContractAttributes | Collection of TypeOfContractAttributeDto |
None. |
Response Formats
application/json, text/json
Sample:
[ { "contractTemplateId": 1, "name": "sample string 2", "typeOfContractId": 1, "content": "sample string 3", "pdfGeneratorTemplate": "sample string 4", "organizationalUnitId": 5, "numberFormat": "sample string 6", "numberResetType": 0, "twoSidedPrint": true, "printFooter": true, "footer": "sample string 9", "contractAttributes": [ 1, 2 ], "assignedContractDocuments": [ 1, 2 ], "typeOfContractAttributes": [ { "typeOfContractAttributeId": 1, "organizationalUnitId": 2, "name": "sample string 3", "typeOfAttributeId": 4, "defaultValue": "sample string 5", "listOfValues": "sample string 6" }, { "typeOfContractAttributeId": 1, "organizationalUnitId": 2, "name": "sample string 3", "typeOfAttributeId": 4, "defaultValue": "sample string 5", "listOfValues": "sample string 6" } ] }, { "contractTemplateId": 1, "name": "sample string 2", "typeOfContractId": 1, "content": "sample string 3", "pdfGeneratorTemplate": "sample string 4", "organizationalUnitId": 5, "numberFormat": "sample string 6", "numberResetType": 0, "twoSidedPrint": true, "printFooter": true, "footer": "sample string 9", "contractAttributes": [ 1, 2 ], "assignedContractDocuments": [ 1, 2 ], "typeOfContractAttributes": [ { "typeOfContractAttributeId": 1, "organizationalUnitId": 2, "name": "sample string 3", "typeOfAttributeId": 4, "defaultValue": "sample string 5", "listOfValues": "sample string 6" }, { "typeOfContractAttributeId": 1, "organizationalUnitId": 2, "name": "sample string 3", "typeOfAttributeId": 4, "defaultValue": "sample string 5", "listOfValues": "sample string 6" } ] } ]
multipart/form-data
Sample:
[{"contractTemplateId":1,"name":"sample string 2","typeOfContractId":1,"content":"sample string 3","pdfGeneratorTemplate":"sample string 4","organizationalUnitId":5,"numberFormat":"sample string 6","numberResetType":0,"twoSidedPrint":true,"printFooter":true,"footer":"sample string 9","contractAttributes":[1,2],"assignedContractDocuments":[1,2],"typeOfContractAttributes":[{"typeOfContractAttributeId":1,"organizationalUnitId":2,"name":"sample string 3","typeOfAttributeId":4,"defaultValue":"sample string 5","listOfValues":"sample string 6"},{"typeOfContractAttributeId":1,"organizationalUnitId":2,"name":"sample string 3","typeOfAttributeId":4,"defaultValue":"sample string 5","listOfValues":"sample string 6"}]},{"contractTemplateId":1,"name":"sample string 2","typeOfContractId":1,"content":"sample string 3","pdfGeneratorTemplate":"sample string 4","organizationalUnitId":5,"numberFormat":"sample string 6","numberResetType":0,"twoSidedPrint":true,"printFooter":true,"footer":"sample string 9","contractAttributes":[1,2],"assignedContractDocuments":[1,2],"typeOfContractAttributes":[{"typeOfContractAttributeId":1,"organizationalUnitId":2,"name":"sample string 3","typeOfAttributeId":4,"defaultValue":"sample string 5","listOfValues":"sample string 6"},{"typeOfContractAttributeId":1,"organizationalUnitId":2,"name":"sample string 3","typeOfAttributeId":4,"defaultValue":"sample string 5","listOfValues":"sample string 6"}]}]
application/xml, text/xml
Sample:
<ArrayOfContractTemplateDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <ContractTemplateDto> <ContractTemplateId>1</ContractTemplateId> <Name>sample string 2</Name> <TypeOfContractId>1</TypeOfContractId> <Content>sample string 3</Content> <PdfGeneratorTemplate>sample string 4</PdfGeneratorTemplate> <OrganizationalUnitId>5</OrganizationalUnitId> <NumberFormat>sample string 6</NumberFormat> <NumberResetType>None</NumberResetType> <TwoSidedPrint>true</TwoSidedPrint> <PrintFooter>true</PrintFooter> <Footer>sample string 9</Footer> <ContractAttributes> <int>1</int> <int>2</int> </ContractAttributes> <AssignedContractDocuments> <int>1</int> <int>2</int> </AssignedContractDocuments> <TypeOfContractAttributes> <TypeOfContractAttributeDto> <TypeOfContractAttributeId>1</TypeOfContractAttributeId> <OrganizationalUnitId>2</OrganizationalUnitId> <Name>sample string 3</Name> <TypeOfAttributeId>4</TypeOfAttributeId> <DefaultValue>sample string 5</DefaultValue> <ListOfValues>sample string 6</ListOfValues> </TypeOfContractAttributeDto> <TypeOfContractAttributeDto> <TypeOfContractAttributeId>1</TypeOfContractAttributeId> <OrganizationalUnitId>2</OrganizationalUnitId> <Name>sample string 3</Name> <TypeOfAttributeId>4</TypeOfAttributeId> <DefaultValue>sample string 5</DefaultValue> <ListOfValues>sample string 6</ListOfValues> </TypeOfContractAttributeDto> </TypeOfContractAttributes> </ContractTemplateDto> <ContractTemplateDto> <ContractTemplateId>1</ContractTemplateId> <Name>sample string 2</Name> <TypeOfContractId>1</TypeOfContractId> <Content>sample string 3</Content> <PdfGeneratorTemplate>sample string 4</PdfGeneratorTemplate> <OrganizationalUnitId>5</OrganizationalUnitId> <NumberFormat>sample string 6</NumberFormat> <NumberResetType>None</NumberResetType> <TwoSidedPrint>true</TwoSidedPrint> <PrintFooter>true</PrintFooter> <Footer>sample string 9</Footer> <ContractAttributes> <int>1</int> <int>2</int> </ContractAttributes> <AssignedContractDocuments> <int>1</int> <int>2</int> </AssignedContractDocuments> <TypeOfContractAttributes> <TypeOfContractAttributeDto> <TypeOfContractAttributeId>1</TypeOfContractAttributeId> <OrganizationalUnitId>2</OrganizationalUnitId> <Name>sample string 3</Name> <TypeOfAttributeId>4</TypeOfAttributeId> <DefaultValue>sample string 5</DefaultValue> <ListOfValues>sample string 6</ListOfValues> </TypeOfContractAttributeDto> <TypeOfContractAttributeDto> <TypeOfContractAttributeId>1</TypeOfContractAttributeId> <OrganizationalUnitId>2</OrganizationalUnitId> <Name>sample string 3</Name> <TypeOfAttributeId>4</TypeOfAttributeId> <DefaultValue>sample string 5</DefaultValue> <ListOfValues>sample string 6</ListOfValues> </TypeOfContractAttributeDto> </TypeOfContractAttributes> </ContractTemplateDto> </ArrayOfContractTemplateDto>