Unit conversion
Endpoints
Create new unit conversion
/unit-conversions |
Get entity list
/unit-conversions |
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
page |
Page index |
integer (int32) |
Query |
size |
Entity count per page |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull |
< UnitConversionDTO > array |
400 |
Functionnal error |
No Content |
500 |
Internal server error |
No Content |
Import entity list
/unit-conversions/import |
Get one unit conversion
/unit-conversions/{unitCode1}/{unitCode2} |
operation.deprecated |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
unitCode1 |
First unit code |
string |
5 characters max |
Path |
unitCode2 |
Second unit ode |
string |
5 characters max |
Delete unit conversion
/unit-conversions/{unitCode1}/{unitCode2} |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
unitCode1 |
First unit public uuid code |
string |
5 characters max |
Path |
unitCode2 |
Second unit public uuid code |
string |
5 characters max |
Data structure
UnitConversionDTO
Name | Description | Value | Business Rules |
---|---|---|---|
quantity1 |
First unit quantity |
double |
|
quantity2 |
Second unit quantity |
double |
|
unit1 |
First unit code |
string |
5 characters max |
unit2 |
Second unit code |
string |
5 characters max |
ImportUnitConversionList
Name | Value |
---|---|
callback |
string |
data |
UnitConversionDTO list |