Api session items netfunctions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Manual revert |
||
| (35 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API Endpoint: /api/session/items/netfunctions/ | |||
Edit items with events described at [[Api session event editor netfunction]]. | |||
Default Query: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?f=JSON&token=API_TOKEN</syntaxhighlight> | |||
Example Response: | |||
<syntaxhighlight lang="text" copy>[ { | |||
"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" : 1 | |||
}, { | |||
"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" : 4 | |||
} ]</syntaxhighlight> | |||
==Limit Queries== | ==Limit Queries== | ||
version=100: | version=100: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?version=100&token=API_TOKEN</syntaxhighlight> | ||
== | ==Get Queries== | ||
attributes: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/attributes/?token=API_TOKEN</syntaxhighlight> | |||
max version: | max version: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/version/?token=API_TOKEN</syntaxhighlight> | ||
count: | |||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/count/?token=API_TOKEN</syntaxhighlight> | ||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?f=HTML&token=API_TOKEN</syntaxhighlight> | ||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?f=CSV&token=API_TOKEN</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?f=SSV&token=API_TOKEN</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?f=SMILE&token=API_TOKEN</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?f=ZIPJSON&token=API_TOKEN</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==Api Model NetFunction== | |||
API Model description of NetFunction | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| attributes | |||
| Map<String,double[]> | |||
| | |||
|- | |||
| diameterM | |||
| double | |||
| | |||
|- | |||
| groupName | |||
| String | |||
| | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| maquetteOverride | |||
| Map<String,double[]> | |||
| | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| netType | |||
| NetType | |||
| [[Net Type]] | |||
|- | |||
| priceM | |||
| double | |||
| | |||
|- | |||
| sourceIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Source]]s ID | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
==Api Model NetType== | |||
API Enumeration description of NetType | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
| ELECTRICITY | |||
| | |||
|- | |||
| GAS | |||
| | |||
|- | |||
| HEAT | |||
| | |||
|- | |||
| INTERNET | |||
| | |||
|- | |||
| SEWER | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor netfunction]] | *[[Api session event editor netfunction]] | ||
| Line 31: | Line 141: | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 07:06, 14 July 2026
API Endpoint: /api/session/items/netfunctions/
Edit items with events described at Api session event editor netfunction.
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" : 1
}, {
"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" : 4
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/netfunctions/?version=100&token=API_TOKENGet Queries
attributes:
https://engine.tygron.com/api/session/items/netfunctions/attributes/?token=API_TOKENmax version:
https://engine.tygron.com/api/session/items/netfunctions/version/?token=API_TOKENcount:
https://engine.tygron.com/api/session/items/netfunctions/count/?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 | Net Type |
| priceM | double | |
| sourceIDs | int[] | Sources ID |
| version | int |
Api Model NetType
API Enumeration description of NetType
| Name | Description |
|---|---|
| ELECTRICITY | |
| GAS | |
| HEAT | |
| INTERNET | |
| SEWER |