GET api/unitclasses

Gets all unit classes.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Name

string

Invalid Chars: .!@#$%^&*\|`~=+/?<>()[],"'

Max length: 30

BaseClassId

integer

None.

Body Parameters

None.

Response Information

Resource Description

Collection of UnitClassViewModel
NameDescriptionTypeAdditional information
Id

integer

Required

Name

string

Required

Invalid Chars: .!@#$%^&*\|`~=+/?<>()[],"'

Max length: 30

BaseClassId

integer

None.

Links

Gets the links.

Collection of LinkModel

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ArrayOfUnitClassViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TelogWebAPI.Models">
  <UnitClassViewModel>
    <BaseClassId>1</BaseClassId>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </UnitClassViewModel>
  <UnitClassViewModel>
    <BaseClassId>1</BaseClassId>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </UnitClassViewModel>
</ArrayOfUnitClassViewModel>