{"action":"opened","issue":{"url":"https://api.github.com/repos/LukaszPiskadlo/Pat2017_Lukasz_Piskadlo-Backend/issues/1","repository_url":"https://api.github.com/repos/LukaszPiskadlo/Pat2017_Lukasz_Piskadlo-Backend","labels_url":"https://api.github.com/repos/LukaszPiskadlo/Pat2017_Lukasz_Piskadlo-Backend/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/LukaszPiskadlo/Pat2017_Lukasz_Piskadlo-Backend/issues/1/comments","events_url":"https://api.github.com/repos/LukaszPiskadlo/Pat2017_Lukasz_Piskadlo-Backend/issues/1/events","html_url":"https://github.com/LukaszPiskadlo/Pat2017_Lukasz_Piskadlo-Backend/issues/1","id":196865292,"number":1,"title":"Missing validation","user":{"login":"mlotysz","id":700164,"avatar_url":"https://avatars.githubusercontent.com/u/700164?v=3","gravatar_id":"","url":"https://api.github.com/users/mlotysz","html_url":"https://github.com/mlotysz","followers_url":"https://api.github.com/users/mlotysz/followers","following_url":"https://api.github.com/users/mlotysz/following{/other_user}","gists_url":"https://api.github.com/users/mlotysz/gists{/gist_id}","starred_url":"https://api.github.com/users/mlotysz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlotysz/subscriptions","organizations_url":"https://api.github.com/users/mlotysz/orgs","repos_url":"https://api.github.com/users/mlotysz/repos","events_url":"https://api.github.com/users/mlotysz/events{/privacy}","received_events_url":"https://api.github.com/users/mlotysz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-21T07:33:37Z","updated_at":"2016-12-21T07:33:37Z","closed_at":null,"body":"I think movie without title and director have no sense and I'd expects to get HTTP 400 instead of empty movie:\r\n\r\n```\r\ncurl -X POST -H \"Content-Type:application/json\" -d '{}' http://localhost:8080/movies\r\n\r\n{\"id\":3,\"title\":null,\"director\":null,\"cast\":null,\"releaseDate\":null,\"duration\":0}\r\n```\r\n\r\nSome validation should be added to resources."}}
{"actor":{"display_login":"mlotysz"}}