+ mark Kind Regards, Wouter
From: Abitha [mailto:[email protected]] Sent: 11 January 2016 06:24 To: Wouter van der Beek (wovander) <wovander at cisco.com>; 'Uze Choi' <uzchoi at samsung.com>; 'P RADHABHAVANIGOWD' <radha.p at samsung.com>; 'Ganesh Kumar T' <ganesh.kumar at samsung.com>; iotivity-dev at lists.iotivity.org Subject: [dev] PUT/POST response payload 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/3b337bb4/attachment.html>
