{"action":"created","issue":{"url":"https://api.github.com/repos/otcshare/iotivity-node/issues/30","labels_url":"https://api.github.com/repos/otcshare/iotivity-node/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/otcshare/iotivity-node/issues/30/comments","events_url":"https://api.github.com/repos/otcshare/iotivity-node/issues/30/events","html_url":"https://github.com/otcshare/iotivity-node/pull/30","id":115083915,"number":30,"title":"Fix JS API spec. Add new JS API spec.","user":{"login":"zolkis","id":996058,"avatar_url":"https://avatars.githubusercontent.com/u/996058?v=3","gravatar_id":"","url":"https://api.github.com/users/zolkis","html_url":"https://github.com/zolkis","followers_url":"https://api.github.com/users/zolkis/followers","following_url":"https://api.github.com/users/zolkis/following{/other_user}","gists_url":"https://api.github.com/users/zolkis/gists{/gist_id}","starred_url":"https://api.github.com/users/zolkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolkis/subscriptions","organizations_url":"https://api.github.com/users/zolkis/orgs","repos_url":"https://api.github.com/users/zolkis/repos","events_url":"https://api.github.com/users/zolkis/events{/privacy}","received_events_url":"https://api.github.com/users/zolkis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-04T15:52:41Z","updated_at":"2015-11-25T19:58:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/otcshare/iotivity-node/pulls/30","html_url":"https://github.com/otcshare/iotivity-node/pull/30","diff_url":"https://github.com/otcshare/iotivity-node/pull/30.diff","patch_url":"https://github.com/otcshare/iotivity-node/pull/30.patch"},"body":"Fixes a couple of issues with the JS API vs the 1.0 version of the OIC Core Specification, such as:\r\n- addressing of an OicResource becomes deviceId + url (path)\r\n- remove args from findDevices() as it does an endpoint discovery\r\n- remove updatedPropertyNames (no support in OIC)\r\n- use OicResource as parameters to functions, though only a few properties are used by the implementation (mainly deviceId and url)\r\n- remove bogus event handlers from OicClient\r\n- remove connectionMode (implementation detail)\r\n- add list of OicResources to OicDeviceFoundEvent (though only url, resourceType and interfaces are provided)\r\n- updated example.\r\n\r\nThe new API spec does all the above, plus:\r\n- reorganize methods to better reflect capabilities of OicDevice vs OicResource, and make a more natural development flow with these objects\r\n- add possibility to install client side handlers to delete and update events\r\n- add possibility to install separate handlers to different server side CRUDN requests\r\n- update and improve examples reflecting the new capabilities\r\n- update the full text of the API spec\r\n- add algorithmic descriptions to findDevices() and findResources().\r\n"},"comment":{"url":"https://api.github.com/repos/otcshare/iotivity-node/issues/comments/159716148","html_url":"https://github.com/otcshare/iotivity-node/pull/30#issuecomment-159716148","issue_url":"https://api.github.com/repos/otcshare/iotivity-node/issues/30","id":159716148,"user":{"login":"zolkis","id":996058,"avatar_url":"https://avatars.githubusercontent.com/u/996058?v=3","gravatar_id":"","url":"https://api.github.com/users/zolkis","html_url":"https://github.com/zolkis","followers_url":"https://api.github.com/users/zolkis/followers","following_url":"https://api.github.com/users/zolkis/following{/other_user}","gists_url":"https://api.github.com/users/zolkis/gists{/gist_id}","starred_url":"https://api.github.com/users/zolkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolkis/subscriptions","organizations_url":"https://api.github.com/users/zolkis/orgs","repos_url":"https://api.github.com/users/zolkis/repos","events_url":"https://api.github.com/users/zolkis/events{/privacy}","received_events_url":"https://api.github.com/users/zolkis/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T19:58:16Z","updated_at":"2015-11-25T19:58:16Z","body":"I will rework the connectivity and security related parts. Thanks for the hints.\r\nHowever, it is not a problem if the JS API slightly differs from the native ones."}}