Api session items actionmenus: Difference between revisions
Jump to navigation
Jump to search
Created page with "api session items Action Menus Endpoints. Manipulate items with event: editoractionmenu. ==Limit Queries==version=100: <pre>https://engine.tygron.com/api/session/items/actionmenus/?version=100&token=API_TOKEN</pre> ==Limit Queries==max version: <pre>https://engine.tygron.com/api/session/items/actionmenus/version/?token=API_TOKEN</pre> size: <pre>https://engine.tygron.com/api/session/items/actionmenus/size/?token=API_TOKEN</pre> Action Menus (GeoJSON): <pre>ht..." |
No edit summary |
||
| (30 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
api session items [[ | API Endpoint: /api/session/items/actionmenus/ | ||
==Limit Queries==version=100: | Edit items with events described at [[Api session event editor actionmenu]]. | ||
< | |||
== | Default Query: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
Example Response: | |||
< | <syntaxhighlight lang="text" copy>[ { | ||
"attributeActionIDs" : [ ], | |||
< | "buildable" : { | ||
== | "0" : [ 0 ] | ||
< | }, | ||
"color" : null, | |||
"eventBundleIDs" : [ ], | |||
"functionIDs" : [ 436, 438 ], | |||
"id" : 0, | |||
"imageName" : "category_road.png", | |||
"imageVersion" : 0, | |||
"leveeIDs" : [ ], | |||
"measureIDs" : [ ], | |||
"name" : "Roads", | |||
"sortIndex" : 1, | |||
"specialOptions" : [ ], | |||
"upgradeIDs" : [ ], | |||
"version" : 18 | |||
}, { | |||
"attributeActionIDs" : [ ], | |||
"buildable" : { | |||
"0" : [ 0 ] | |||
}, | |||
"color" : null, | |||
"eventBundleIDs" : [ ], | |||
"functionIDs" : [ 77 ], | |||
"id" : 1, | |||
"imageName" : "category_heart.png", | |||
"imageVersion" : 0, | |||
"leveeIDs" : [ ], | |||
"measureIDs" : [ ], | |||
"name" : "Leisure", | |||
"sortIndex" : 2, | |||
"specialOptions" : [ ], | |||
"upgradeIDs" : [ ], | |||
"version" : 19 | |||
} ]</syntaxhighlight> | |||
==Limit Queries== | |||
version=100: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?version=100&token=API_TOKEN</syntaxhighlight> | |||
==Get Queries== | |||
attributes: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/attributes/?token=API_TOKEN</syntaxhighlight> | |||
max version: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/version/?token=API_TOKEN</syntaxhighlight> | |||
count: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/count/?token=API_TOKEN</syntaxhighlight> | |||
==Formats== | |||
HTML: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?f=HTML&token=API_TOKEN</syntaxhighlight> | |||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?f=CSV&token=API_TOKEN</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?f=SSV&token=API_TOKEN</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?f=SMILE&token=API_TOKEN</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?f=ZIPJSON&token=API_TOKEN</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/actionmenus/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
{{article end|seealso=*[[Api Content Items]]}} | ==Api Model ActionMenu== | ||
API Model description of ActionMenu | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| attributeActionIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Attribute Action]]s ID | |||
|- | |||
| buildable | |||
| Map<int,java.util.List<java.lang.Integer>> | |||
| | |||
|- | |||
| color | |||
| TColor | |||
| [[Color]] | |||
|- | |||
| eventBundleIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Event Bundle]]s ID | |||
|- | |||
| functionIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Function]]s ID | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| imageName | |||
| String | |||
| | |||
|- | |||
| imageVersion | |||
| int | |||
| | |||
|- | |||
| leveeIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Levee]]s ID | |||
|- | |||
| measureIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Measure]]s ID | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| sortIndex | |||
| int | |||
| | |||
|- | |||
| specialOptions | |||
| Type<nowiki>[]</nowiki> | |||
| | |||
|- | |||
| upgradeIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Upgrade Type]]s ID | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
==Api Model TColor== | |||
API Model description of TColor | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|} | |||
==Api Model Type (SpecialOption)== | |||
API Enumeration description of Type | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
| BUY_LAND | |||
| | |||
|- | |||
| SELL_LAND | |||
| | |||
|- | |||
| DEMOLISH | |||
| | |||
|- | |||
| REVERT | |||
| | |||
|- | |||
| DEMOLISH_UNDERGROUND | |||
| | |||
|- | |||
| RAISE_LAND | |||
| | |||
|- | |||
| SHOW_BUDGETPANEL | |||
| | |||
|- | |||
| SHOW_MONEY_TRANSFER_PANEL | |||
| | |||
|- | |||
| LOWER_LAND | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | |||
*[[Api session event editor actionmenu]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 07:14, 7 July 2026
API Endpoint: /api/session/items/actionmenus/
Edit items with events described at Api session event editor actionmenu.
Default Query:
https://engine.tygron.com/api/session/items/actionmenus/?f=JSON&token=API_TOKENExample Response:
[ {
"attributeActionIDs" : [ ],
"buildable" : {
"0" : [ 0 ]
},
"color" : null,
"eventBundleIDs" : [ ],
"functionIDs" : [ 436, 438 ],
"id" : 0,
"imageName" : "category_road.png",
"imageVersion" : 0,
"leveeIDs" : [ ],
"measureIDs" : [ ],
"name" : "Roads",
"sortIndex" : 1,
"specialOptions" : [ ],
"upgradeIDs" : [ ],
"version" : 18
}, {
"attributeActionIDs" : [ ],
"buildable" : {
"0" : [ 0 ]
},
"color" : null,
"eventBundleIDs" : [ ],
"functionIDs" : [ 77 ],
"id" : 1,
"imageName" : "category_heart.png",
"imageVersion" : 0,
"leveeIDs" : [ ],
"measureIDs" : [ ],
"name" : "Leisure",
"sortIndex" : 2,
"specialOptions" : [ ],
"upgradeIDs" : [ ],
"version" : 19
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/actionmenus/?version=100&token=API_TOKENGet Queries
attributes:
https://engine.tygron.com/api/session/items/actionmenus/attributes/?token=API_TOKENmax version:
https://engine.tygron.com/api/session/items/actionmenus/version/?token=API_TOKENcount:
https://engine.tygron.com/api/session/items/actionmenus/count/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/actionmenus/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/actionmenus/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/actionmenus/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/actionmenus/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/actionmenus/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/actionmenus/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/actionmenus/?f=ZIPSMILE&token=API_TOKENApi Model ActionMenu
API Model description of ActionMenu
| Name | Type | Description |
|---|---|---|
| attributeActionIDs | int[] | Attribute Actions ID |
| buildable | Map<int,java.util.List<java.lang.Integer>> | |
| color | TColor | Color |
| eventBundleIDs | int[] | Event Bundles ID |
| functionIDs | int[] | Functions ID |
| id | int | |
| imageName | String | |
| imageVersion | int | |
| leveeIDs | int[] | Levees ID |
| measureIDs | int[] | Measures ID |
| name | String | |
| sortIndex | int | |
| specialOptions | Type[] | |
| upgradeIDs | int[] | Upgrade Types ID |
| version | int |
Api Model TColor
API Model description of TColor
| Name | Type | Description |
|---|
Api Model Type (SpecialOption)
API Enumeration description of Type
| Name | Description |
|---|---|
| BUY_LAND | |
| SELL_LAND | |
| DEMOLISH | |
| REVERT | |
| DEMOLISH_UNDERGROUND | |
| RAISE_LAND | |
| SHOW_BUDGETPANEL | |
| SHOW_MONEY_TRANSFER_PANEL | |
| LOWER_LAND |