{"action":"created","issue":{"url":"https://api.github.com/repos/lightspeedretail/ruby-grafana-api/issues/4","repository_url":"https://api.github.com/repos/lightspeedretail/ruby-grafana-api","labels_url":"https://api.github.com/repos/lightspeedretail/ruby-grafana-api/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/lightspeedretail/ruby-grafana-api/issues/4/comments","events_url":"https://api.github.com/repos/lightspeedretail/ruby-grafana-api/issues/4/events","html_url":"https://github.com/lightspeedretail/ruby-grafana-api/issues/4","id":127992586,"number":4,"title":"POST vs. PATCH?","user":{"login":"harlanbarnes","id":879963,"avatar_url":"https://avatars.githubusercontent.com/u/879963?v=3","gravatar_id":"","url":"https://api.github.com/users/harlanbarnes","html_url":"https://github.com/harlanbarnes","followers_url":"https://api.github.com/users/harlanbarnes/followers","following_url":"https://api.github.com/users/harlanbarnes/following{/other_user}","gists_url":"https://api.github.com/users/harlanbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/harlanbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlanbarnes/subscriptions","organizations_url":"https://api.github.com/users/harlanbarnes/orgs","repos_url":"https://api.github.com/users/harlanbarnes/repos","events_url":"https://api.github.com/users/harlanbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/harlanbarnes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-21T18:42:11Z","updated_at":"2016-03-02T23:25:20Z","closed_at":"2016-03-02T22:28:53Z","body":"Hi there - First off, thanks for this rubygem, it's very helpful!\r\n\r\nI did run into a problem however. I was trying write a little script to setup datasources during an initialization of grafana. I could read/GET the list of datasources and datasource types, but I couldn't create one. The grafana logs were complaining with:\r\n\r\n```\r\n\"PATCH /api/datasources HTTP/1.1\" 404 Not Found 23 bytes\r\n```\r\n\r\nAs a test, I modified the gem to NOT translate a POST to a PATCH (instead just using a post) and all started working (around [here](https://github.com/lightspeedretail/ruby-grafana-api/blob/master/lib/grafana/http_request.rb#L37)).\r\n\r\nI checked the [API docs](http://docs.grafana.org/reference/http_api/) and it looks like the PATCH verb is used for some of the update types, but not for create and delete.\r\n\r\nIs there something I am missing on the use of PATCH here? If not, would you accept a PR to switch the usage of POST, PUT, and DELETE to use their corresponding verbs (instead of PATCH?)\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/lightspeedretail/ruby-grafana-api/issues/comments/191490593","html_url":"https://github.com/lightspeedretail/ruby-grafana-api/issues/4#issuecomment-191490593","issue_url":"https://api.github.com/repos/lightspeedretail/ruby-grafana-api/issues/4","id":191490593,"user":{"login":"hartfordfive","id":3722736,"avatar_url":"https://avatars.githubusercontent.com/u/3722736?v=3","gravatar_id":"","url":"https://api.github.com/users/hartfordfive","html_url":"https://github.com/hartfordfive","followers_url":"https://api.github.com/users/hartfordfive/followers","following_url":"https://api.github.com/users/hartfordfive/following{/other_user}","gists_url":"https://api.github.com/users/hartfordfive/gists{/gist_id}","starred_url":"https://api.github.com/users/hartfordfive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartfordfive/subscriptions","organizations_url":"https://api.github.com/users/hartfordfive/orgs","repos_url":"https://api.github.com/users/hartfordfive/repos","events_url":"https://api.github.com/users/hartfordfive/events{/privacy}","received_events_url":"https://api.github.com/users/hartfordfive/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T23:25:20Z","updated_at":"2016-03-02T23:25:20Z","body":"Glad you find it useful.  Don't hesitate to let others know about it."}}