Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » REST API in smartM2M version
REST API in smartM2M version [message #1732319] Sun, 15 May 2016 18:42 Go to next message
Luke Tang is currently offline Luke TangFriend
Messages: 6
Registered: September 2015
Junior Member
https://wiki.eclipse.org/OM2M/REST_API
In "Create a description contentInstance" example:

body:
<obj>
<str name="type" val="Temperature_Sensor"/>
<str name="location" val="Home"/>
<str name="appId" val="MY_SENSOR"/>
<op name="getValue" href="gscl/applications/MY_SENSOR/containers/DATA/contentInstances/latest/content"
in="obix:Nil" out="obix:Nil" is="retrieve"/>
</obj>

What are both in and out mean?
thx
Re: REST API in smartM2M version [message #1732326 is a reply to message #1732319] Mon, 16 May 2016 01:40 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 227
Registered: November 2013
Senior Member
Hello,

In general, the "in" and "out" enables defining the operation contract. They can be used respectively to provide information to the user about the input and output of an operation.
For example, the "in" attribute can be used to define an obix representation to send as payload for POST request (is attribute is equal to "create" in this case)

Regards,
Mahdi

[Updated on: Mon, 16 May 2016 02:59]

Report message to a moderator

Re: REST API in smartM2M version [message #1732333 is a reply to message #1732326] Mon, 16 May 2016 06:05 Go to previous message
Luke Tang is currently offline Luke TangFriend
Messages: 6
Registered: September 2015
Junior Member
@Mahdi Ben AlayaFriend:

Could you give me an example?

thx
Previous Topic:How many condition tags are currently supported by OM2M v1 ?
Next Topic:Use of the retargeting concept in the oneM2M version
Goto Forum:
  


Current Time: Wed Sep 19 14:24:43 GMT 2018

Powered by FUDForum. Page generated in 0.02373 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top