Api session items globals: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (42 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
api session items [[ | API Endpoint: /api/session/items/globals/ | ||
==Limit Queries==version=100: | Edit items with events described at [[Api session event editor global]]. | ||
< | |||
Default Query: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=JSON&token=API_TOKEN</syntaxhighlight> | |||
Example Response: | |||
<syntaxhighlight lang="text" copy>[ { | |||
"actualValue" : [ 1.0, 2.0 ], | |||
"bookValueStakeholderID" : -1, | |||
"calcTimeMS" : 0, | |||
"id" : 2, | |||
"name" : "HELLO", | |||
"point" : null, | |||
"previousValue" : [ 1.0, 2.0 ], | |||
"query" : "", | |||
"queryTiming" : "AFTER", | |||
"startValue" : [ 1.0, 2.0 ], | |||
"version" : 1, | |||
"visualisationName" : "" | |||
}, { | |||
"actualValue" : [ 3.0, 4.0 ], | |||
"bookValueStakeholderID" : -1, | |||
"calcTimeMS" : 0, | |||
"id" : 3, | |||
"name" : "HELLO2", | |||
"point" : null, | |||
"previousValue" : [ 3.0, 4.0 ], | |||
"query" : "", | |||
"queryTiming" : "AFTER", | |||
"startValue" : [ 3.0, 4.0 ], | |||
"version" : 2, | |||
"visualisationName" : "" | |||
} ]</syntaxhighlight> | |||
==Limit Queries== | |||
version=100: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?version=100&token=API_TOKEN</syntaxhighlight> | |||
Pseudo-Mercator: | Pseudo-Mercator: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?crs=3857&token=API_TOKEN</syntaxhighlight> | ||
Degrees: | Degrees: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?crs=4326&token=API_TOKEN</syntaxhighlight> | ||
Amersfoort / RD New: | Amersfoort / RD New: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?crs=28992&token=API_TOKEN</syntaxhighlight> | ||
Local Coordinates: | Local Coordinates: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?crs=LOCAL&token=API_TOKEN</syntaxhighlight> | ||
bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785: | bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=API_TOKEN</syntaxhighlight> | ||
FOO: | FOO: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals-foo/?crs=3857&token=API_TOKEN</syntaxhighlight> | ||
== | ==Get Queries== | ||
< | attributes: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/attributes/?token=API_TOKEN</syntaxhighlight> | |||
< | max version: | ||
== | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/version/?token=API_TOKEN</syntaxhighlight> | ||
< | count: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/count/?token=API_TOKEN</syntaxhighlight> | |||
==Formats== | |||
HTML: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=HTML&token=API_TOKEN&crs=3857</syntaxhighlight> | |||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=JSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
GEOJSON: | GEOJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=GEOJSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
GPKG: | GPKG: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=GPKG&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
DXF: | DXF: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=DXF&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=CSV&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=SSV&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=SMILE&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=ZIPJSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/globals/?f=ZIPSMILE&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
{{article end|seealso=*[[Api Content Items]]}} | ==Api Model Global== | ||
API Model description of Global | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| actualValue | |||
| double[] | |||
| | |||
|- | |||
| bookValueStakeholderID | |||
| int | |||
| [[Stakeholder]] ID | |||
|- | |||
| calcTimeMS | |||
| long | |||
| | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| point | |||
| Point | |||
| [[Point]] | |||
|- | |||
| previousValue | |||
| double[] | |||
| | |||
|- | |||
| query | |||
| String | |||
| | |||
|- | |||
| queryTiming | |||
| Timing | |||
| | |||
|- | |||
| startValue | |||
| double[] | |||
| | |||
|- | |||
| version | |||
| int | |||
| | |||
|- | |||
| visualisationName | |||
| String | |||
| | |||
|} | |||
==Api Model Point== | |||
API Model description of Point | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| type | |||
| String | |||
| [[Point]] | |||
|- | |||
| coordinates | |||
| double[] | |||
| x, y, (optional) z | |||
|} | |||
==Api Model Timing== | |||
API Enumeration description of Timing | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
| BEFORE | |||
| | |||
|- | |||
| AFTER | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | |||
*[[Api session event editor global]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 07:06, 14 July 2026
API Endpoint: /api/session/items/globals/
Edit items with events described at Api session event editor global.
Default Query:
https://engine.tygron.com/api/session/items/globals/?f=JSON&token=API_TOKENExample Response:
[ {
"actualValue" : [ 1.0, 2.0 ],
"bookValueStakeholderID" : -1,
"calcTimeMS" : 0,
"id" : 2,
"name" : "HELLO",
"point" : null,
"previousValue" : [ 1.0, 2.0 ],
"query" : "",
"queryTiming" : "AFTER",
"startValue" : [ 1.0, 2.0 ],
"version" : 1,
"visualisationName" : ""
}, {
"actualValue" : [ 3.0, 4.0 ],
"bookValueStakeholderID" : -1,
"calcTimeMS" : 0,
"id" : 3,
"name" : "HELLO2",
"point" : null,
"previousValue" : [ 3.0, 4.0 ],
"query" : "",
"queryTiming" : "AFTER",
"startValue" : [ 3.0, 4.0 ],
"version" : 2,
"visualisationName" : ""
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/globals/?version=100&token=API_TOKENPseudo-Mercator:
https://engine.tygron.com/api/session/items/globals/?crs=3857&token=API_TOKENDegrees:
https://engine.tygron.com/api/session/items/globals/?crs=4326&token=API_TOKENAmersfoort / RD New:
https://engine.tygron.com/api/session/items/globals/?crs=28992&token=API_TOKENLocal Coordinates:
https://engine.tygron.com/api/session/items/globals/?crs=LOCAL&token=API_TOKENbbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785:
https://engine.tygron.com/api/session/items/globals/?crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=API_TOKENFOO:
https://engine.tygron.com/api/session/items/globals-foo/?crs=3857&token=API_TOKENGet Queries
attributes:
https://engine.tygron.com/api/session/items/globals/attributes/?token=API_TOKENmax version:
https://engine.tygron.com/api/session/items/globals/version/?token=API_TOKENcount:
https://engine.tygron.com/api/session/items/globals/count/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/globals/?f=HTML&token=API_TOKEN&crs=3857JSON:
https://engine.tygron.com/api/session/items/globals/?f=JSON&token=API_TOKEN&crs=3857GEOJSON:
https://engine.tygron.com/api/session/items/globals/?f=GEOJSON&token=API_TOKEN&crs=3857GPKG:
https://engine.tygron.com/api/session/items/globals/?f=GPKG&token=API_TOKEN&crs=3857DXF:
https://engine.tygron.com/api/session/items/globals/?f=DXF&token=API_TOKEN&crs=3857CSV:
https://engine.tygron.com/api/session/items/globals/?f=CSV&token=API_TOKEN&crs=3857SSV:
https://engine.tygron.com/api/session/items/globals/?f=SSV&token=API_TOKEN&crs=3857SMILE:
https://engine.tygron.com/api/session/items/globals/?f=SMILE&token=API_TOKEN&crs=3857ZIPJSON:
https://engine.tygron.com/api/session/items/globals/?f=ZIPJSON&token=API_TOKEN&crs=3857ZIPSMILE:
https://engine.tygron.com/api/session/items/globals/?f=ZIPSMILE&token=API_TOKEN&crs=3857Api Model Global
API Model description of Global
| Name | Type | Description |
|---|---|---|
| actualValue | double[] | |
| bookValueStakeholderID | int | Stakeholder ID |
| calcTimeMS | long | |
| id | int | |
| name | String | |
| point | Point | Point |
| previousValue | double[] | |
| query | String | |
| queryTiming | Timing | |
| startValue | double[] | |
| version | int | |
| visualisationName | String |
Api Model Point
API Model description of Point
| Name | Type | Description |
|---|---|---|
| type | String | Point |
| coordinates | double[] | x, y, (optional) z |
Api Model Timing
API Enumeration description of Timing
| Name | Description |
|---|---|
| BEFORE | |
| AFTER |