Api session items netfunctions: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Replaced content with "Api session items Net Functions Endpoints. Edit items with event: editornetfunction. 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" :..."
Tag: Replaced
No edit summary
Tag: Manual revert
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
Api session items [[Net Function]]s Endpoints.
API Endpoint: /api/session/items/netfunctions/


Edit items with event: [[Api session event editor netfunction|editornetfunction]].
Edit items with events described at [[Api session event editor netfunction]].


Default Query:
Default Query:
Line 21: Line 21:
   "priceM" : null,
   "priceM" : null,
   "sourceIDs" : [ ],
   "sourceIDs" : [ ],
   "version" : 2
   "version" : 1
}, {
}, {
   "attributes" : {
   "attributes" : {
Line 37: Line 37:
   "priceM" : null,
   "priceM" : null,
   "sourceIDs" : [ ],
   "sourceIDs" : [ ],
   "version" : 5
   "version" : 4
} ]</syntaxhighlight>
} ]</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>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/?version=100&token=API_TOKEN</syntaxhighlight>
==Show Queries==
==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>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/version/?token=API_TOKEN</syntaxhighlight>
size:  
count:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/size/?token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netfunctions/count/?token=API_TOKEN</syntaxhighlight>
==Formats==
==Formats==
HTML:  
HTML:  
Line 70: Line 72:
!Description
!Description
|-
|-
|attributes
| attributes
|Map&lt;String,double[]&gt;
| Map&lt;String,double[]&gt;
|
|  
|-
|-
|diameterM
| diameterM
|double
| double
|
|  
|-
|-
|groupName
| groupName
|String
| String
|
|  
|-
|-
|id
| id
|int
| int
|
|  
|-
|-
|maquetteOverride
| maquetteOverride
|Map&lt;String,double[]&gt;
| Map&lt;String,double[]&gt;
|
|  
|-
|-
|name
| name
|String
| String
|
|  
|-
|-
|netType
| netType
|NetType
| NetType
|
| [[Net Type]]
|-
|-
|priceM
| priceM
|double
| double
|
|  
|-
|-
|sourceIDs
| sourceIDs
|int<nowiki>[]</nowiki>
| int<nowiki>[]</nowiki>
|[[Source]] ID  
| [[Source]]s ID  
|-
|-
|version
| version
|int
| int
|
|  
|}
|}


==Api Model NetLineFunctionAttribute==
==Api Model NetType==
API Enumeration description of NetLineFunctionAttribute
API Enumeration description of NetType


{|class=wikitable
{|class=wikitable
Line 118: Line 120:
!Description
!Description
|-
|-
|PRICE_M
| ELECTRICITY
|
|  
|-
|-
|VISUALIZATION_DIAMETER_M
| GAS
|
|  
|-
|-
|DIAMETER_M
| HEAT
|
|  
|-
|-
|COLOR
| INTERNET
|
|
|-
| SEWER
|  
|}
|}


Line 136: 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_TOKEN

Example 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_TOKEN

Get Queries

attributes:

https://engine.tygron.com/api/session/items/netfunctions/attributes/?token=API_TOKEN

max version:

https://engine.tygron.com/api/session/items/netfunctions/version/?token=API_TOKEN

count:

https://engine.tygron.com/api/session/items/netfunctions/count/?token=API_TOKEN

Formats

HTML:

https://engine.tygron.com/api/session/items/netfunctions/?f=HTML&token=API_TOKEN

JSON:

https://engine.tygron.com/api/session/items/netfunctions/?f=JSON&token=API_TOKEN

CSV:

https://engine.tygron.com/api/session/items/netfunctions/?f=CSV&token=API_TOKEN

SSV:

https://engine.tygron.com/api/session/items/netfunctions/?f=SSV&token=API_TOKEN

SMILE:

https://engine.tygron.com/api/session/items/netfunctions/?f=SMILE&token=API_TOKEN

ZIPJSON:

https://engine.tygron.com/api/session/items/netfunctions/?f=ZIPJSON&token=API_TOKEN

ZIPSMILE:

https://engine.tygron.com/api/session/items/netfunctions/?f=ZIPSMILE&token=API_TOKEN

Api 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