GET api/unitconversions?fromUnitId={fromUnitId}&toUnitId={toUnitId}
Determines if a unit conversion is valid
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
fromUnitId | integer |
Required |
|
toUnitId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
UnitConversionValidationModelName | Description | Type | Additional information |
---|---|---|---|
Valid | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "valid": true }
application/xml, text/xml
Sample:
<UnitConversionValidationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TelogWebAPI.Models"> <Valid>true</Valid> </UnitConversionValidationModel>