GET Api/TypeOfDocuments/list/GetForParent/{organizationalUnitId}/{currentPage}/{itemsPerPage}?documentGroup={documentGroup}

Pobiera listę wszystkich obiektów z wybranymi polami TypeOfDocument

Request Information

URI Parameters

NameDescriptionTypeAdditional 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

documentGroup

DocumentGroup

None.

Body Parameters

None.

Response Information

Resource Description

lista wszystkich obiektów TypeOfDocument w bazie danych

Collection of TypeOfDocumentListDto
NameDescriptionTypeAdditional information
TypeOfDocumentId

Identyfikator typu dokumentu

integer

Required

TypeOfFileId

Identyfikator typu pliku

integer

Required

OrganizationalUnitId

Identyfikator jednostki organizacyjnej

integer

Required

TypeOfSharedDocumentId

Identyfikator rodzaju ogólnego dokumentu

integer

None.

IsActive

Określa, czy dany typ dokumentu jest aktywny

boolean

None.

DocumentSize

Rozmiar generowanego dokumentu

DocumentSize

None.

DocumentGroup

Grupa dokumentów do filtrowania podczas przypisywania do wybranych pól w innych dokumentach

DocumentGroup

None.

NameTranslations

Collection of TranslationDto

None.

DescTranslations

Collection of TranslationDto

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "typeOfDocumentId": 1,
    "typeOfFileId": 2,
    "organizationalUnitId": 3,
    "typeOfSharedDocumentId": 1,
    "isActive": true,
    "documentSize": 0,
    "documentGroup": 0,
    "nameTranslations": [
      {
        "languageId": 1,
        "text": "sample string 2"
      },
      {
        "languageId": 1,
        "text": "sample string 2"
      }
    ],
    "descTranslations": [
      {
        "languageId": 1,
        "text": "sample string 2"
      },
      {
        "languageId": 1,
        "text": "sample string 2"
      }
    ]
  },
  {
    "typeOfDocumentId": 1,
    "typeOfFileId": 2,
    "organizationalUnitId": 3,
    "typeOfSharedDocumentId": 1,
    "isActive": true,
    "documentSize": 0,
    "documentGroup": 0,
    "nameTranslations": [
      {
        "languageId": 1,
        "text": "sample string 2"
      },
      {
        "languageId": 1,
        "text": "sample string 2"
      }
    ],
    "descTranslations": [
      {
        "languageId": 1,
        "text": "sample string 2"
      },
      {
        "languageId": 1,
        "text": "sample string 2"
      }
    ]
  }
]

multipart/form-data

Sample:
[{"typeOfDocumentId":1,"typeOfFileId":2,"organizationalUnitId":3,"typeOfSharedDocumentId":1,"isActive":true,"documentSize":0,"documentGroup":0,"nameTranslations":[{"languageId":1,"text":"sample string 2"},{"languageId":1,"text":"sample string 2"}],"descTranslations":[{"languageId":1,"text":"sample string 2"},{"languageId":1,"text":"sample string 2"}]},{"typeOfDocumentId":1,"typeOfFileId":2,"organizationalUnitId":3,"typeOfSharedDocumentId":1,"isActive":true,"documentSize":0,"documentGroup":0,"nameTranslations":[{"languageId":1,"text":"sample string 2"},{"languageId":1,"text":"sample string 2"}],"descTranslations":[{"languageId":1,"text":"sample string 2"},{"languageId":1,"text":"sample string 2"}]}]

application/xml, text/xml

Sample:
<ArrayOfTypeOfDocumentListDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TypeOfDocumentListDto>
    <TypeOfDocumentId>1</TypeOfDocumentId>
    <TypeOfFileId>2</TypeOfFileId>
    <OrganizationalUnitId>3</OrganizationalUnitId>
    <TypeOfSharedDocumentId>1</TypeOfSharedDocumentId>
    <NameTranslations>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
    </NameTranslations>
    <DescTranslations>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
    </DescTranslations>
  </TypeOfDocumentListDto>
  <TypeOfDocumentListDto>
    <TypeOfDocumentId>1</TypeOfDocumentId>
    <TypeOfFileId>2</TypeOfFileId>
    <OrganizationalUnitId>3</OrganizationalUnitId>
    <TypeOfSharedDocumentId>1</TypeOfSharedDocumentId>
    <NameTranslations>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
    </NameTranslations>
    <DescTranslations>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
    </DescTranslations>
  </TypeOfDocumentListDto>
</ArrayOfTypeOfDocumentListDto>