changes.mady.by.user Stanislav Slacky
Saved on Feb 11, 2016
...
URL: https://api-stage.bimplus.net/v2/content/units
Example: https://api-stage.bimplus.net/v2/content/units
JSON Structure of unit:
Name
Mandatory / Optional
Type
Description
name
mandatory
string
Name of the unit
description
optional
Short description of the unit
The "baseunits" property is an array of jsons with following definitions :
ufactor
int
Unit factor (default is 1)
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088 Content-Type: application/json
{ "name": "MyDerivedUnit", "description": "Example of derived unit", "symbol": "Sym", "baseunits" : [ { "baseunitid": "3b871b65-516e-4e7e-a35f-faa7501d5d0d", "usequence": 1, "ufactor": 2, "upower": 3 } } ] }
Status: 201 Created
{ "symbolid": "Sym9c75f2e7-bf66-4274-96a6-fb61ecb0e21a", "baseunitidname": "3b871b65-516e-4e7e-a35f-faa7501d5d0dMyDerivedUnit", "usequencedescription": 1 "Example of derived unit", "ufactorsymbol": 2.0"Sym", "upowerbaseunits" : 3, "id [ { "baseunitid": "9c75f2e73b871b65-bf66516e-42744e7e-96a6a35f-fb61ecb0e21afaa7501d5d0d", "nameusequence": 1, "MyDerivedUnitufactor": 2, "descriptionupower": "Example of derived unit" 3 } ] }