Api session items netfunctions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
"priceM" : null, | "priceM" : null, | ||
"sourceIDs" : [ ], | "sourceIDs" : [ ], | ||
"version" : | "version" : 3 | ||
}, { | }, { | ||
"attributes" : { | "attributes" : { | ||
| Line 139: | Line 139: | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:ItemsI]] | |||
Revision as of 08:49, 24 April 2026
Api session items Net Functions Endpoints.
Edit items with event: editornetfunction.
Default Query:
https://engine.tygron.com/api/session/items/netfunctions/?f=JSON&token=API_TOKENExample Response:
[ {
"attributes" : {
"COLOR" : [ -6711040.0 ],
"DIAMETER_M" : [ 0.1 ],
"PRICE_M" : [ 10.0 ],
"VISUALIZATION_DIAMETER_M" : [ 1.0 ]
},
"diameterM" : null,
"groupName" : "",
"id" : 0,
"maquetteOverride" : null,
"name" : "Electricity Line",
"netType" : "ELECTRICITY",
"priceM" : null,
"sourceIDs" : [ ],
"version" : 3
}, {
"attributes" : {
"COLOR" : [ -1.1704628E7 ],
"DIAMETER_M" : [ 0.1 ],
"PRICE_M" : [ 10.0 ],
"VISUALIZATION_DIAMETER_M" : [ 1.0 ]
},
"diameterM" : null,
"groupName" : "",
"id" : 1,
"maquetteOverride" : null,
"name" : "Gas Line",
"netType" : "GAS",
"priceM" : null,
"sourceIDs" : [ ],
"version" : 1
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/netfunctions/?version=100&token=API_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/netfunctions/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/netfunctions/size/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/netfunctions/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/netfunctions/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/netfunctions/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/netfunctions/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/netfunctions/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/netfunctions/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/netfunctions/?f=ZIPSMILE&token=API_TOKENApi Model NetFunction
API Model description of NetFunction
| Name | Type | Description |
|---|---|---|
| attributes | Map<String,double[]> | |
| diameterM | double | |
| groupName | String | |
| id | int | |
| maquetteOverride | Map<String,double[]> | |
| name | String | |
| netType | NetType | |
| priceM | double | |
| sourceIDs | int[] | Source ID |
| version | int |
Api Model NetType
API Enumeration description of NetType
| Name | Description |
|---|---|
| ELECTRICITY | |
| GAS | |
| HEAT | |
| INTERNET | |
| SEWER |