OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

camp message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Example for issue CAMP-198 resolution


I took an AI to come up with an example that illustrates how select_collection_attr works. Here it is. It can be included in section 7.3.2.1

Let /paas/assembly/8675309/comps be the component resource collection URI of an assembly. Let the collection contain five items, with the first item containing the tag “db”; second element containing the tags “db” and “app-server”; third element containing the tag “db”; fourth and fifth element do not have the tags attribute. In this case a GET on /paas/assembly/8675309/comps?select_collection_attr=tags will result in response containing three unique elements as follows:

{
  "uri": ...,
  "name": ...,
  "collection_type":...,
  "total_items": 3,
  "items_per_page": 3,
  "start_index": 0,
  "items":[{tags: ["db"]}, {tags: ["db", "app-server"]}, {}],
  "metadata": ...
}


Thanks.

--Anish


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]