Difference between revisions of "User:Dzonatas Sol/SNOW-375 Resources/Inventory"
Jump to navigation
Jump to search
Dzonatas Sol (talk | contribs) (Created page with '{| border="1" cellpadding="5" cellspacing="0" |- | Resource || Method || Description |- |- | rowspan="1" | /Inventory/Item/<uuid> | style="text-align:right;" | GET (POST) | Resp...') |
Dzonatas Sol (talk | contribs) |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{| border="1" cellpadding="5" cellspacing="0" | {| border="1" cellpadding="5" cellspacing="0" | ||
|- | |- | ||
Line 5: | Line 6: | ||
|- | |- | ||
| rowspan="1" | /Inventory/ | | rowspan="1" | /Inventory/Asset(/<uuid>) | ||
| style="text-align:right;" | GET (POST) | | style="text-align:right;" | POST (GET) | ||
| | | ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&status }, ... ] ( ?? uuid <- &status ) | ||
|- | |||
| rowspan="1" | /Inventory/Item(/<uuid>) | |||
| style="text-align:right;" | POST (GET) | |||
| ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&item }, ... ] ( ?? uuid <- &item ) | |||
|- | |- | ||
| rowspan="1" | /Inventory/Root | | rowspan="1" | /Inventory/Root | ||
| style="text-align:right;" | GET | | style="text-align:right;" | GET | ||
| | | <- { ID: uuid } | ||
|- | |- | ||
| rowspan="1" | /Inventory/Category/<uuid> | | rowspan="1" | /Inventory/Category/<uuid> | ||
| style="text-align:right;" | GET (POST) | | style="text-align:right;" | GET (POST) | ||
| | | ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&category }, ... ] ( ?? uuid <- &category ) | ||
|} | |} | ||
Note: Description syntax is only based on LLIDL. | |||
== /Inventory/Asset(/<uuid>) == | |||
Complex query used to localize assets. Asynchronously queries /Asset/Loaded as they become available. | |||
== /Inventory/Item(/<uuid>) == | |||
Complex query contains &category | |||
== /Inventory/Root == | |||
Response is root category uuid of agent's inventory | |||
== /Inventory/Category(/<uuid>) == | |||
Complex query contains &category | |||
== status == | |||
{ status: string } | |||
Value is "ok" | |||
== category == | |||
{ | |||
{| | |||
|- | |||
| Version | |||
| : integer | |||
|- | |||
| Name | |||
| : string | |||
|- | |||
| Base | |||
| : uuid | |||
|- | |||
| Categories | |||
| : [ uuid, ... ] | |||
|- | |||
| Items | |||
| : [ uuid, ... ] | |||
|- | |||
| Data | |||
| : llsd | |||
|} | |||
} | |||
== item == | |||
{ | |||
{| | |||
|- | |||
| *data* | |||
|- | |||
| ... | |||
|- | |||
| (Active) | |||
| : bool | |||
|} | |||
} | |||
Map elements and data are implementation specific, yet currently uses same LLSD format as internal to Snowglobe. Active is optional map entry that appears for gestures. |
Revision as of 18:31, 31 July 2010
Resource | Method | Description |
/Inventory/Asset(/<uuid>) | POST (GET) | ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&status }, ... ] ( ?? uuid <- &status ) |
/Inventory/Item(/<uuid>) | POST (GET) | ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&item }, ... ] ( ?? uuid <- &item ) |
/Inventory/Root | GET | <- { ID: uuid } |
/Inventory/Category/<uuid> | GET (POST) | ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&category }, ... ] ( ?? uuid <- &category ) |
Note: Description syntax is only based on LLIDL.
/Inventory/Asset(/<uuid>)
Complex query used to localize assets. Asynchronously queries /Asset/Loaded as they become available.
/Inventory/Item(/<uuid>)
Complex query contains &category
/Inventory/Root
Response is root category uuid of agent's inventory
/Inventory/Category(/<uuid>)
Complex query contains &category
status
{ status: string }
Value is "ok"
category
{
Version | : integer |
Name | : string |
Base | : uuid |
Categories | : [ uuid, ... ] |
Items | : [ uuid, ... ] |
Data | : llsd |
}
item
{
*data* | |
... | |
(Active) | : bool |
}
Map elements and data are implementation specific, yet currently uses same LLSD format as internal to Snowglobe. Active is optional map entry that appears for gestures.