Api session items modelsets: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (18 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
Default Query: | Default Query: | ||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/? | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/?token=API_TOKEN</syntaxhighlight> | ||
Example Response: | Example Response: | ||
<syntaxhighlight lang="text" copy>[ { | <syntaxhighlight lang="text" copy>[ { | ||
| Line 17: | Line 17: | ||
"name" : "Old social housing (v1)", | "name" : "Old social housing (v1)", | ||
"roofInset" : 0.0, | "roofInset" : 0.0, | ||
"version" : | "version" : 3 | ||
} ]</syntaxhighlight> | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
Version=100: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/?version=100&token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/?version=100&token=API_TOKEN</syntaxhighlight> | ||
== | ==Get Queries== | ||
Attributes: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/attributes/?token=API_TOKEN</syntaxhighlight> | |||
Max version: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/version/?token=API_TOKEN</syntaxhighlight> | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/version/?token=API_TOKEN</syntaxhighlight> | ||
Count: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/ | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/count/?token=API_TOKEN</syntaxhighlight> | ||
Specific Item by ID: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modelsets/{id}/?token=API_TOKEN</syntaxhighlight> | |||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
| Line 50: | Line 54: | ||
!Description | !Description | ||
|- | |- | ||
|angle | | angle | ||
|float | | float | ||
| | | | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|modelIDs | | modelIDs | ||
|int<nowiki>[]</nowiki> | | int<nowiki>[]</nowiki> | ||
|[[Model Data]]s ID | | [[Model Data]]s ID | ||
|- | |- | ||
|name | | name | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|roofInset | | roofInset | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|version | | version | ||
|int | | int | ||
| | | | ||
|} | |} | ||
Latest revision as of 12:12, 14 October 2026
API Endpoint: /api/session/items/modelsets/
Default Query:
https://engine.tygron.com/api/session/items/modelsets/?token=API_TOKENExample Response:
[ {
"angle" : -3.0,
"id" : 1,
"modelIDs" : [ ],
"name" : "Empty",
"roofInset" : 0.0,
"version" : 1
}, {
"angle" : -2.0,
"id" : 2,
"modelIDs" : [ 1, 119 ],
"name" : "Old social housing (v1)",
"roofInset" : 0.0,
"version" : 3
} ]Limit Queries
Version=100:
https://engine.tygron.com/api/session/items/modelsets/?version=100&token=API_TOKENGet Queries
Attributes:
https://engine.tygron.com/api/session/items/modelsets/attributes/?token=API_TOKENMax version:
https://engine.tygron.com/api/session/items/modelsets/version/?token=API_TOKENCount:
https://engine.tygron.com/api/session/items/modelsets/count/?token=API_TOKENSpecific Item by ID:
https://engine.tygron.com/api/session/items/modelsets/{id}/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/modelsets/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/modelsets/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/modelsets/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/modelsets/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/modelsets/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/modelsets/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/modelsets/?f=ZIPSMILE&token=API_TOKENApi Model ModelSet
API Model description of ModelSet
| Name | Type | Description |
|---|---|---|
| angle | float | |
| id | int | |
| modelIDs | int[] | Model Datas ID |
| name | String | |
| roofInset | double | |
| version | int |