Difference between revisions of "User:Dzonatas Sol/SNOW-375 Resources/Inventory"

From Second Life Wiki
Jump to navigation Jump to search
m
 
Line 24: Line 24:
| style="text-align:right;" | POST (GET)
| style="text-align:right;" | POST (GET)
| ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&category }, ... ] ( ?? uuid <- &category )
| ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&category }, ... ] ( ?? uuid <- &category )
|-
| rowspan="1" | /Inventory/Changed
| style="text-align:right;" | POST
| -> [ { ID: uuid, AssetType: string }, ... ] <- { status: string }


|}
|}
Line 49: Line 54:


Complex query contains &category
Complex query contains &category
== /Inventory/Changed ==
Queried when an inventory item(s) changes.





Latest revision as of 21:00, 2 August 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>) POST (GET) ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&category }, ... ] ( ?? uuid <- &category )
/Inventory/Changed POST -> [ { ID: uuid, AssetType: string }, ... ] <- { status: string }

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


/Inventory/Changed

Queried when an inventory item(s) changes.


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.