GET Api/WorkTypes/GetForParent/{organizationalUnitId}/{currentPage}/{itemsPerPage}

Pobiera listę wszystkich obiektów WorkType

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

Body Parameters

None.

Response Information

Resource Description

lista wszystkich obiektów WorkType w bazie danych

Collection of WorkTypeDto
NameDescriptionTypeAdditional information
WorkTypeId

integer

Required

OrganizationalUnitId

integer

Required

NameTranslations

Collection of TranslationDto

None.

TagsTranslations

Collection of TranslationDto

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "workTypeId": 1,
    "organizationalUnitId": 2,
    "nameTranslations": [
      {
        "languageId": 1,
        "text": "sample string 2"
      },
      {
        "languageId": 1,
        "text": "sample string 2"
      }
    ],
    "tagsTranslations": [
      {
        "languageId": 1,
        "text": "sample string 2"
      },
      {
        "languageId": 1,
        "text": "sample string 2"
      }
    ]
  },
  {
    "workTypeId": 1,
    "organizationalUnitId": 2,
    "nameTranslations": [
      {
        "languageId": 1,
        "text": "sample string 2"
      },
      {
        "languageId": 1,
        "text": "sample string 2"
      }
    ],
    "tagsTranslations": [
      {
        "languageId": 1,
        "text": "sample string 2"
      },
      {
        "languageId": 1,
        "text": "sample string 2"
      }
    ]
  }
]

multipart/form-data

Sample:
[{"workTypeId":1,"organizationalUnitId":2,"nameTranslations":[{"languageId":1,"text":"sample string 2"},{"languageId":1,"text":"sample string 2"}],"tagsTranslations":[{"languageId":1,"text":"sample string 2"},{"languageId":1,"text":"sample string 2"}]},{"workTypeId":1,"organizationalUnitId":2,"nameTranslations":[{"languageId":1,"text":"sample string 2"},{"languageId":1,"text":"sample string 2"}],"tagsTranslations":[{"languageId":1,"text":"sample string 2"},{"languageId":1,"text":"sample string 2"}]}]

application/xml, text/xml

Sample:
<ArrayOfWorkTypeDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <WorkTypeDto>
    <WorkTypeId>1</WorkTypeId>
    <OrganizationalUnitId>2</OrganizationalUnitId>
    <NameTranslations>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
    </NameTranslations>
    <TagsTranslations>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
    </TagsTranslations>
  </WorkTypeDto>
  <WorkTypeDto>
    <WorkTypeId>1</WorkTypeId>
    <OrganizationalUnitId>2</OrganizationalUnitId>
    <NameTranslations>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
    </NameTranslations>
    <TagsTranslations>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
      <TranslationDto>
        <LanguageId>1</LanguageId>
        <Text>sample string 2</Text>
      </TranslationDto>
    </TagsTranslations>
  </WorkTypeDto>
</ArrayOfWorkTypeDto>