GET api/ServiceTypes?includeHidden={includeHidden}

Gets the list of different service types that are available.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
includeHidden

True to ignore filters and return everything.

boolean

Required

Body Parameters

None.

Response Information

Resource Description

Returns the list of service types (id, code and name)

Collection of ServiceType
NameDescriptionTypeAdditional information
ID

Internal id of the service type

integer

None.

Code

Short name for the service type

string

None.

Name

Longer description of the service type

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "code": "sample string 2",
    "name": "sample string 3"
  },
  {
    "id": 1,
    "code": "sample string 2",
    "name": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfServiceType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
  <ServiceType>
    <Code>sample string 2</Code>
    <ID>1</ID>
    <Name>sample string 3</Name>
  </ServiceType>
  <ServiceType>
    <Code>sample string 2</Code>
    <ID>1</ID>
    <Name>sample string 3</Name>
  </ServiceType>
</ArrayOfServiceType>