Good day All!

Am experimenting on a collection resource using the IOT-REST-API-SERVER:
Running  iotivity 1.3, i launch the groupserver cpp after launching the 
garageserver and simpleserver examples and executed a discovery request like 
this:

http://XX.XXXX ( http://196.24.225.36:8000/api/oic/res ). ( 
http://196.24.225.36:8000/api/oic/res ) XX:8000/api/oic/res ( 
http://196.24.225.36:8000/api/oic/res )

{"di":"03db998e-0800-e6b1-0fb5-334035338bcc","links":[{"href":"/core/a/collection","rt":["a.collection"],"if":["oic.if.baseline","oic.if.b","oic.mi.grp"],"p":{"bm":1,"secure":false}}]}
child one:
{"di":"03db998e-0800-e6b1-0fb5-334035338bcc","links":[{"href":"coap://[XX::XX:XX:fe48:bd87%25eth0]:47587/a/light","rt":["core.test"],"if":["oic.if.baseline"],"p":{"bm":3,"secure":false}}]}
child 2
{"di":"03db998e-0800-e6b1-0fb5-334035338bcc","links":[{"href":"coap://[fe80::222:4dff:fe48:bd87%25eth0]:50703/a/garage","rt":["core.test"],"if":["oic.if.baseline"],"p":{"bm":3,"secure":false}}]}

my issue i issueing CRUDN request: for instance a GET request on the collection 
ressource only return the first child"
http://XX.XX.XX.XX:8000/api/oic/core/a/collection
{

* 
type : 4 ,

* 
uri : "/a/light" ,

* 
values : 
 
{

* 
name : "John's light" ,

* 
power : 0 ,

* 
state : false

}

}

How can i get all children resources in one GET operation:
i guess PUT request must be disagregated

Thanks for any help 

Yann

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10017): 
https://lists.iotivity.org/g/iotivity-dev/message/10017
Mute This Topic: https://lists.iotivity.org/mt/28195413/21656
Group Owner: iotivity-dev+ow...@lists.iotivity.org
Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to