GET api/Unit
Gets all units
Request Information
URI Parameters
None.
Body Parameters
None.
Remarks
None.
Example
None.
Response Information
Resource Description
Collection of UnitResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of the unit |
integer |
None. |
| Name |
Name of the unit |
string |
None. |
| SiCodeId | integer |
None. |
|
| Description |
Description of the unit |
string |
None. |
| Decimals |
Number of decimals |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"SiCodeId": 3,
"Description": "sample string 4",
"Decimals": 5
},
{
"Id": 1,
"Name": "sample string 2",
"SiCodeId": 3,
"Description": "sample string 4",
"Decimals": 5
}
]
application/xml, text/xml
Sample:
<ArrayOfUnitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
<UnitResponse>
<Decimals>5</Decimals>
<Description>sample string 4</Description>
<Id>1</Id>
<Name>sample string 2</Name>
<SiCodeId>3</SiCodeId>
</UnitResponse>
<UnitResponse>
<Decimals>5</Decimals>
<Description>sample string 4</Description>
<Id>1</Id>
<Name>sample string 2</Name>
<SiCodeId>3</SiCodeId>
</UnitResponse>
</ArrayOfUnitResponse>