{"action":"created","issue":{"url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/811","repository_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director","labels_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/811/labels{/name}","comments_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/811/comments","events_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/811/events","html_url":"https://github.com/Icinga/icingaweb2-module-director/issues/811","id":209267941,"number":811,"title":"REST API Support for Datafields and Datalists (implementation available)","user":{"login":"mdetrano","id":20076416,"avatar_url":"https://avatars0.githubusercontent.com/u/20076416?v=3","gravatar_id":"","url":"https://api.github.com/users/mdetrano","html_url":"https://github.com/mdetrano","followers_url":"https://api.github.com/users/mdetrano/followers","following_url":"https://api.github.com/users/mdetrano/following{/other_user}","gists_url":"https://api.github.com/users/mdetrano/gists{/gist_id}","starred_url":"https://api.github.com/users/mdetrano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdetrano/subscriptions","organizations_url":"https://api.github.com/users/mdetrano/orgs","repos_url":"https://api.github.com/users/mdetrano/repos","events_url":"https://api.github.com/users/mdetrano/events{/privacy}","received_events_url":"https://api.github.com/users/mdetrano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-21T20:47:43Z","updated_at":"2017-03-21T16:48:09Z","closed_at":null,"body":"Currently, the REST API for Director does not support datafield and datalist objects.  While these are not \"Icinga\" objects, technically, it is still very useful to have these fields for viewing/editing vars attached to Icinga objects in Director.  Since those objects may be sent from external systems using the API, it would be nice to have the possibility of also setting up datafields with the same API (especially if you'd like to sync up commands and templates among separate Director systems).\r\n\r\nI have implemented this and can send a Pull request from my fork if desired.  My patch adds datafield(s) and datalist(s) endpoints to the API which function very similarly to other object endpoints, and also modifies the Icinga Object(s) controllers to add a ../fields endpoint under each object (or object collection) to see and modify links between objects and fields in Director (as applicable to the the object and its type).   \r\n"},"comment":{"url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/comments/288142080","html_url":"https://github.com/Icinga/icingaweb2-module-director/issues/811#issuecomment-288142080","issue_url":"https://api.github.com/repos/Icinga/icingaweb2-module-director/issues/811","id":288142080,"user":{"login":"mcktr","id":18580278,"avatar_url":"https://avatars1.githubusercontent.com/u/18580278?v=3","gravatar_id":"","url":"https://api.github.com/users/mcktr","html_url":"https://github.com/mcktr","followers_url":"https://api.github.com/users/mcktr/followers","following_url":"https://api.github.com/users/mcktr/following{/other_user}","gists_url":"https://api.github.com/users/mcktr/gists{/gist_id}","starred_url":"https://api.github.com/users/mcktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcktr/subscriptions","organizations_url":"https://api.github.com/users/mcktr/orgs","repos_url":"https://api.github.com/users/mcktr/repos","events_url":"https://api.github.com/users/mcktr/events{/privacy}","received_events_url":"https://api.github.com/users/mcktr/received_events","type":"User","site_admin":false},"created_at":"2017-03-21T16:48:09Z","updated_at":"2017-03-21T16:48:09Z","body":"Support for datafields and datalists via the REST API would be very useful. My \"dirty\" workaround for the missing support was to write the datafields & datalists direct in the director database."}}
{"actor":{"display_login":"mcktr"}}