GET api/v1/timeregistration-types
Used to retrieve timeregistration types
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of TimeRegistrationTypeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| TypeId | integer |
None. |
|
| Description | string |
None. |
|
| Name | string |
None. |
|
| Label | string |
None. |
|
| ColorClass | string |
None. |
|
| IsDefault | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"typeId": 1,
"description": "sample string 2",
"name": "sample string 3",
"label": "sample string 4",
"colorClass": "sample string 5",
"isDefault": true
},
{
"typeId": 1,
"description": "sample string 2",
"name": "sample string 3",
"label": "sample string 4",
"colorClass": "sample string 5",
"isDefault": true
}
]
application/xml, text/xml
Sample:
<ArrayOfTimeRegistrationTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models">
<TimeRegistrationTypeDto>
<ColorClass>sample string 5</ColorClass>
<Description>sample string 2</Description>
<IsDefault>true</IsDefault>
<Label>sample string 4</Label>
<Name>sample string 3</Name>
<TypeId>1</TypeId>
</TimeRegistrationTypeDto>
<TimeRegistrationTypeDto>
<ColorClass>sample string 5</ColorClass>
<Description>sample string 2</Description>
<IsDefault>true</IsDefault>
<Label>sample string 4</Label>
<Name>sample string 3</Name>
<TypeId>1</TypeId>
</TimeRegistrationTypeDto>
</ArrayOfTimeRegistrationTypeDto>