{"action":"created","issue":{"url":"https://api.github.com/repos/hesa/coachassistant/issues/4","labels_url":"https://api.github.com/repos/hesa/coachassistant/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hesa/coachassistant/issues/4/comments","events_url":"https://api.github.com/repos/hesa/coachassistant/issues/4/events","html_url":"https://github.com/hesa/coachassistant/issues/4","id":85294107,"number":4,"title":"Warn/Error if club name already exists","user":{"login":"hesa","id":1850150,"avatar_url":"https://avatars.githubusercontent.com/u/1850150?v=3","gravatar_id":"","url":"https://api.github.com/users/hesa","html_url":"https://github.com/hesa","followers_url":"https://api.github.com/users/hesa/followers","following_url":"https://api.github.com/users/hesa/following{/other_user}","gists_url":"https://api.github.com/users/hesa/gists{/gist_id}","starred_url":"https://api.github.com/users/hesa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hesa/subscriptions","organizations_url":"https://api.github.com/users/hesa/orgs","repos_url":"https://api.github.com/users/hesa/repos","events_url":"https://api.github.com/users/hesa/events{/privacy}","received_events_url":"https://api.github.com/users/hesa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jonkri","id":777056,"avatar_url":"https://avatars.githubusercontent.com/u/777056?v=3","gravatar_id":"","url":"https://api.github.com/users/jonkri","html_url":"https://github.com/jonkri","followers_url":"https://api.github.com/users/jonkri/followers","following_url":"https://api.github.com/users/jonkri/following{/other_user}","gists_url":"https://api.github.com/users/jonkri/gists{/gist_id}","starred_url":"https://api.github.com/users/jonkri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonkri/subscriptions","organizations_url":"https://api.github.com/users/jonkri/orgs","repos_url":"https://api.github.com/users/jonkri/repos","events_url":"https://api.github.com/users/jonkri/events{/privacy}","received_events_url":"https://api.github.com/users/jonkri/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-06-04T21:49:31Z","updated_at":"2015-07-05T17:30:41Z","closed_at":"2015-07-05T17:30:41Z","body":"When adding a club with the same name more than once I think it would be better to warn (or error) the caller. Can't see any reason for allowing the same club name more than once?\r\n\r\n/h"},"comment":{"url":"https://api.github.com/repos/hesa/coachassistant/issues/comments/118639452","html_url":"https://github.com/hesa/coachassistant/issues/4#issuecomment-118639452","issue_url":"https://api.github.com/repos/hesa/coachassistant/issues/4","id":118639452,"user":{"login":"jonkri","id":777056,"avatar_url":"https://avatars.githubusercontent.com/u/777056?v=3","gravatar_id":"","url":"https://api.github.com/users/jonkri","html_url":"https://github.com/jonkri","followers_url":"https://api.github.com/users/jonkri/followers","following_url":"https://api.github.com/users/jonkri/following{/other_user}","gists_url":"https://api.github.com/users/jonkri/gists{/gist_id}","starred_url":"https://api.github.com/users/jonkri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonkri/subscriptions","organizations_url":"https://api.github.com/users/jonkri/orgs","repos_url":"https://api.github.com/users/jonkri/repos","events_url":"https://api.github.com/users/jonkri/events{/privacy}","received_events_url":"https://api.github.com/users/jonkri/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T17:30:41Z","updated_at":"2015-07-05T17:30:41Z","body":"This is now fixed.\r\n\r\n    $ curl --data '{ \"name\": \"Bergsjö IF\" }' --header \"Content-Type: application/json\" -v -request POST localhost:3000/0.0.0/clubs\r\n    Warning: Invalid character is found in given range. A specified range MUST \r\n    Warning: have only digits in 'start'-'stop'. The server's response to this \r\n    Warning: request is uncertain.\r\n    * Rebuilt URL to: POST/\r\n    * Could not resolve host: POST\r\n    * Closing connection 0\r\n    curl: (6) Could not resolve host: POST\r\n    *   Trying ::1...\r\n    * Connected to localhost (::1) port 3000 (#1)\r\n    > POST /0.0.0/clubs HTTP/1.1\r\n    > Host: localhost:3000\r\n    > Content-Range: bytes equest/25\r\n    > User-Agent: curl/7.43.0\r\n    > Accept: */*\r\n    > Content-Type: application/json\r\n    > Content-Length: 25\r\n    > \r\n    * upload completely sent off: 25 out of 25 bytes\r\n    < HTTP/1.1 409 Conflict\r\n    < Transfer-Encoding: chunked\r\n    < Date: Sun, 05 Jul 2015 17:29:06 GMT\r\n    < Server: Warp/3.0.13\r\n    < Content-Type: application/json; charset=UTF-8\r\n    < \r\n    * Connection #1 to host localhost left intact\r\n    {\"customReason\":{}}"}}