Api session items scenarios: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (21 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API Endpoint: /api/session/items/scenarios/ | |||
Edit items with | Edit items with events described at [[Api session event editor scenario]]. | ||
Default Query: | Default Query: | ||
| Line 20: | Line 20: | ||
==Limit Queries== | ==Limit Queries== | ||
version=100: | version=100: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/?version=100&token=API_TOKEN</syntaxhighlight> | ||
== | ==Get Queries== | ||
attributes: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/attributes/?token=API_TOKEN</syntaxhighlight> | |||
max version: | max version: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/version/?token=API_TOKEN</syntaxhighlight> | ||
count: | |||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/count/?token=API_TOKEN</syntaxhighlight> | ||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/?f=HTML&token=API_TOKEN</syntaxhighlight> | ||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/?f=CSV&token=API_TOKEN</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/?f=SSV&token=API_TOKEN</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/?f=SMILE&token=API_TOKEN</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/?f=ZIPJSON&token=API_TOKEN</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/scenarios/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==Api Model CodedEvent== | |||
API Model description of CodedEvent | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| parameters | |||
| Object<nowiki>[]</nowiki> | |||
| | |||
|} | |||
==Api Model LimitType== | |||
API Enumeration description of LimitType | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
| DEFAULT | |||
| | |||
|- | |||
| NEIGHBORHOODS | |||
| | |||
|- | |||
| MEASURE_NEIGHBORHOODS | |||
| | |||
|} | |||
==Api Model Scenario== | |||
API Model description of Scenario | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| attributes | |||
| Map<String,double[]> | |||
| | |||
|- | |||
| description | |||
| String | |||
| | |||
|- | |||
| events | |||
| CodedEvent<nowiki>[]</nowiki> | |||
| | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| limitNeighborhoodIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Neighborhood]]s ID | |||
|- | |||
| limitType | |||
| LimitType | |||
| | |||
|- | |||
| maquetteOverride | |||
| Map<String,double[]> | |||
| | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| restartTestrun | |||
| boolean | |||
| | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor scenario]] | *[[Api session event editor scenario]] | ||
| Line 48: | Line 131: | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 07:14, 7 July 2026
API Endpoint: /api/session/items/scenarios/
Edit items with events described at Api session event editor scenario.
Default Query:
https://engine.tygron.com/api/session/items/scenarios/?f=JSON&token=API_TOKENExample Response:
[ {
"attributes" : null,
"description" : "",
"events" : [ ],
"id" : 0,
"limitNeighborhoodIDs" : [ ],
"limitType" : "DEFAULT",
"maquetteOverride" : null,
"name" : "Scenario",
"restartTestrun" : true,
"version" : 2
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/scenarios/?version=100&token=API_TOKENGet Queries
attributes:
https://engine.tygron.com/api/session/items/scenarios/attributes/?token=API_TOKENmax version:
https://engine.tygron.com/api/session/items/scenarios/version/?token=API_TOKENcount:
https://engine.tygron.com/api/session/items/scenarios/count/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/scenarios/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/scenarios/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/scenarios/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/scenarios/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/scenarios/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/scenarios/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/scenarios/?f=ZIPSMILE&token=API_TOKENApi Model CodedEvent
API Model description of CodedEvent
| Name | Type | Description |
|---|---|---|
| id | int | |
| parameters | Object[] |
Api Model LimitType
API Enumeration description of LimitType
| Name | Description |
|---|---|
| DEFAULT | |
| NEIGHBORHOODS | |
| MEASURE_NEIGHBORHOODS |
Api Model Scenario
API Model description of Scenario
| Name | Type | Description |
|---|---|---|
| attributes | Map<String,double[]> | |
| description | String | |
| events | CodedEvent[] | |
| id | int | |
| limitNeighborhoodIDs | int[] | Neighborhoods ID |
| limitType | LimitType | |
| maquetteOverride | Map<String,double[]> | |
| name | String | |
| restartTestrun | boolean | |
| version | int |