GET api/GlobalDepartment?subIndustryId={subIndustryId}&sorted={sorted}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subIndustryId

integer

Required

sorted

boolean

Required

Body Parameters

None.

Response Information

Resource Description

GlobalDepartmentsModel
NameDescriptionTypeAdditional information
Name

string

None.

Description

string

None.

SubIndustries

Collection of DeptSubIndustryInfo

None.

Id

integer

None.

Status

string

None.

CreatedBy

string

None.

CreateTimestamp

date

None.

ModifiedBy

string

None.

ModifiedTimestamp

date

None.

DataStateFlag

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "SubIndustries": [
    {
      "IndustryName": "sample string 1",
      "IndustryId": 2,
      "SubIndustryName": "sample string 3",
      "SubIndustryId": 4
    },
    {
      "IndustryName": "sample string 1",
      "IndustryId": 2,
      "SubIndustryName": "sample string 3",
      "SubIndustryId": 4
    }
  ],
  "Id": 3,
  "Status": "sample string 4",
  "CreatedBy": "sample string 5",
  "CreateTimestamp": "2024-11-21T09:13:28.1072542+00:00",
  "ModifiedBy": "sample string 7",
  "ModifiedTimestamp": "2024-11-21T09:13:28.1072542+00:00",
  "DataStateFlag": "sample string 8"
}

application/xml, text/xml

Sample:
<GlobalDepartmentsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models.Department">
  <CreateTimestamp xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models">
    <d2p1:DateTime>2024-11-21T09:13:28.1072542Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreateTimestamp>
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models">sample string 5</CreatedBy>
  <DataStateFlag xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models">sample string 8</DataStateFlag>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models">3</Id>
  <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models">sample string 7</ModifiedBy>
  <ModifiedTimestamp xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models">
    <d2p1:DateTime>2024-11-21T09:13:28.1072542Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ModifiedTimestamp>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models">sample string 4</Status>
  <Description>sample string 2</Description>
  <Name>sample string 1</Name>
  <SubIndustries>
    <DeptSubIndustryInfo>
      <IndustryId>2</IndustryId>
      <IndustryName>sample string 1</IndustryName>
      <SubIndustryId>4</SubIndustryId>
      <SubIndustryName>sample string 3</SubIndustryName>
    </DeptSubIndustryInfo>
    <DeptSubIndustryInfo>
      <IndustryId>2</IndustryId>
      <IndustryName>sample string 1</IndustryName>
      <SubIndustryId>4</SubIndustryId>
      <SubIndustryName>sample string 3</SubIndustryName>
    </DeptSubIndustryInfo>
  </SubIndustries>
</GlobalDepartmentsModel>