{"action":"created","issue":{"url":"https://api.github.com/repos/evercam/evercam-media/issues/131","labels_url":"https://api.github.com/repos/evercam/evercam-media/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/evercam/evercam-media/issues/131/comments","events_url":"https://api.github.com/repos/evercam/evercam-media/issues/131/events","html_url":"https://github.com/evercam/evercam-media/issues/131","id":115505390,"number":131,"title":"Duplicate the all the onvif commands under /cameras/:id/onvif/","user":{"login":"marcoherbst","id":5648894,"avatar_url":"https://avatars.githubusercontent.com/u/5648894?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoherbst","html_url":"https://github.com/marcoherbst","followers_url":"https://api.github.com/users/marcoherbst/followers","following_url":"https://api.github.com/users/marcoherbst/following{/other_user}","gists_url":"https://api.github.com/users/marcoherbst/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoherbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoherbst/subscriptions","organizations_url":"https://api.github.com/users/marcoherbst/orgs","repos_url":"https://api.github.com/users/marcoherbst/repos","events_url":"https://api.github.com/users/marcoherbst/events{/privacy}","received_events_url":"https://api.github.com/users/marcoherbst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jgarciasacristan","id":8569388,"avatar_url":"https://avatars.githubusercontent.com/u/8569388?v=3","gravatar_id":"","url":"https://api.github.com/users/jgarciasacristan","html_url":"https://github.com/jgarciasacristan","followers_url":"https://api.github.com/users/jgarciasacristan/followers","following_url":"https://api.github.com/users/jgarciasacristan/following{/other_user}","gists_url":"https://api.github.com/users/jgarciasacristan/gists{/gist_id}","starred_url":"https://api.github.com/users/jgarciasacristan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgarciasacristan/subscriptions","organizations_url":"https://api.github.com/users/jgarciasacristan/orgs","repos_url":"https://api.github.com/users/jgarciasacristan/repos","events_url":"https://api.github.com/users/jgarciasacristan/events{/privacy}","received_events_url":"https://api.github.com/users/jgarciasacristan/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-06T13:32:29Z","updated_at":"2015-11-06T15:14:15Z","closed_at":null,"body":"Here's the list:\r\nhttp://www.onvif.org/onvif/ver20/util/operationIndex.html\r\n\r\nThese 2 are equivalent:\r\nhttp://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl#op.GetDeviceInformation\r\nGET /cameras/:id/onvif/GETDeviceInformation\r\n\r\non Q, I wonder if this might be better done under: /devices/ rather than /cameras ....\r\n\r\nm"},"comment":{"url":"https://api.github.com/repos/evercam/evercam-media/issues/comments/154434362","html_url":"https://github.com/evercam/evercam-media/issues/131#issuecomment-154434362","issue_url":"https://api.github.com/repos/evercam/evercam-media/issues/131","id":154434362,"user":{"login":"jgarciasacristan","id":8569388,"avatar_url":"https://avatars.githubusercontent.com/u/8569388?v=3","gravatar_id":"","url":"https://api.github.com/users/jgarciasacristan","html_url":"https://github.com/jgarciasacristan","followers_url":"https://api.github.com/users/jgarciasacristan/followers","following_url":"https://api.github.com/users/jgarciasacristan/following{/other_user}","gists_url":"https://api.github.com/users/jgarciasacristan/gists{/gist_id}","starred_url":"https://api.github.com/users/jgarciasacristan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgarciasacristan/subscriptions","organizations_url":"https://api.github.com/users/jgarciasacristan/orgs","repos_url":"https://api.github.com/users/jgarciasacristan/repos","events_url":"https://api.github.com/users/jgarciasacristan/events{/privacy}","received_events_url":"https://api.github.com/users/jgarciasacristan/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T15:14:15Z","updated_at":"2015-11-06T15:14:15Z","body":"/devices/:id/onvif/v20/OnvifOperationName as we cover recording devices as well.\r\n\r\nFor example for GetDeviceInformation of mobile-mast would be something like\r\n\r\nhttps://api.evercam.io/v1/devices/mobile-mast/onvif/v20/GetDeviceInformation.\r\n\r\nWhen adding a camera, the camera will not be avaikabke in the DB so current Onvif calls will fail. We need to figure out a way to provide host/port/username/password available to the connection. One way can be to check for query params if the id is not available in the DB (See http://hexdocs.pm/plug/Plug.Conn.html)\r\n"}}