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

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '{| border="1" cellpadding="5" cellspacing="0" |- | Resource || Method || Description |- |- | rowspan="1" | /Inventory/Item/<uuid> | style="text-align:right;" | GET (POST) | Resp...')
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
{| border="1" cellpadding="5" cellspacing="0"
{| border="1" cellpadding="5" cellspacing="0"
|-
|-
Line 5: Line 6:


|-
|-
| rowspan="1" | /Inventory/Item/<uuid>
| rowspan="1" | /Inventory/Asset(/<uuid>)
| style="text-align:right;" | GET (POST)
| style="text-align:right;" | POST (GET)
| Response is the details of an inventory item specified by the UUID
| ?? '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
| Response is the UUID of the root inventory folder
| <- { ID: uuid }
 
|-
| rowspan="1" | /Inventory/Category(/<uuid>)
| style="text-align:right;" | POST (GET)
| ?? 's' -> [ uuid , ... ] <- [ { ID: uuid, +&category }, ... ] ( ?? uuid <- &category )


|-
|-
| rowspan="1" | /Inventory/Category/<uuid>
| rowspan="1" | /Inventory/Changed
| style="text-align:right;" | GET (POST)
| style="text-align:right;" | POST
| Response is the UUIDs of the descendant categories and items of the specified UUID
| -> [ { 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.

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.