Hi,
I had a query regarding the response on POST and PUT responses.
As per the RAML provided in the Smart Home Vertical, I understand that the
Resource can have a response schema to be provided in the response body.
However in the Spec, Payload is mentioned as not mandatory. Only response
Code is mandatory.
Please let me know which convention needs to be followed.
Spec:
UPDATE response
The OIC Server shall send an UPDATE response message in response to an
UPDATE request message from an OIC Client. The UPDATE response message will
include the following parameters.
. fr: Unique identifier of the OIC Server
. to: Unique identifier of the OIC Client
. ri: Identifier included in the UPDATE request
. rs: The result of the UPDATE operation
The server incorporates the representation enclosed in the POST request into
the existing resource identified by the request URI and sends back a
response.
However RAML specifies as below.
post:
body:
application/json:
schema: OICLight
responses:
200:
body:
application/json:
schema: OICLight
403:
description: |
This response is generated by the OIC Server when the client
sends:
An update with an out of range property value for intensity.
The server responds with the range property illustrating the
error.
body:
application/json:
schema: OICLightError
Regards,
Abitha.S
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160111/ab06937a/attachment.html>