{"action":"closed","issue":{"url":"https://api.github.com/repos/raigons/uaisoccer/issues/26","labels_url":"https://api.github.com/repos/raigons/uaisoccer/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/raigons/uaisoccer/issues/26/comments","events_url":"https://api.github.com/repos/raigons/uaisoccer/issues/26/events","html_url":"https://github.com/raigons/uaisoccer/issues/26","id":76814433,"number":26,"title":"{API} Insert Team Avatar","user":{"login":"luhhsnunes","id":1926257,"avatar_url":"https://avatars.githubusercontent.com/u/1926257?v=3","gravatar_id":"","url":"https://api.github.com/users/luhhsnunes","html_url":"https://github.com/luhhsnunes","followers_url":"https://api.github.com/users/luhhsnunes/followers","following_url":"https://api.github.com/users/luhhsnunes/following{/other_user}","gists_url":"https://api.github.com/users/luhhsnunes/gists{/gist_id}","starred_url":"https://api.github.com/users/luhhsnunes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luhhsnunes/subscriptions","organizations_url":"https://api.github.com/users/luhhsnunes/orgs","repos_url":"https://api.github.com/users/luhhsnunes/repos","events_url":"https://api.github.com/users/luhhsnunes/events{/privacy}","received_events_url":"https://api.github.com/users/luhhsnunes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/raigons/uaisoccer/labels/1%20-%20Ready","name":"1 - Ready","color":"fef2c0"},{"url":"https://api.github.com/repos/raigons/uaisoccer/labels/Story","name":"Story","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T18:31:20Z","updated_at":"2015-05-27T18:22:28Z","closed_at":"2015-05-27T18:22:28Z","body":"**As an API consumer\r\nI want to be able to save and retrieve the avatar for a new team\r\nSo it can be displayed along the system**\r\n\r\n## Out of scope\r\n- Register a new team\r\n- Edit a registered team\r\n- Edit the avatar of a registered team\r\n\r\n## Notes\r\nIt assumes that the user story #24 has already been played\r\nThe avatar is not a required information\r\n*Invalid values for avatar means any value not correspondent to a string. We should also prevent the user of sending \"\" as a value.\r\n\r\n## Acceptance Criteria\r\nGiven I am registering a new team\r\nWhen I POST to `/teams/` with the content:\r\n```json\r\n{ \r\n    \"avatarPath\": \"images/prods/team.jpg\"\r\n}\r\n``` \r\nThen the API returns the HTTP status code 201 (Created)\r\nAnd I see the following attribute as part of its body:\r\n```json\r\n{\r\n        \"avatarPath\": \"images/prods/team.jpg\"\r\n}\r\n```\r\n\r\n\r\nGiven I am registering a new team\r\nWhen I POST to `/teams/` with an invalid value* to `avatarPath` attribute\r\nThen the API returns the HTTP status code 400 (Bad Request)\r\n\r\nGiven I am registering a new team\r\nWhen I GET to `/teams/1`\r\nThen the API returns the HTTP status code 200 (OK)\r\nAnd I see the following attribute as part of its body:\r\n```json\r\n{\r\n        \"avatarPath\": \"images/prods/team.jpg\"\r\n}\r\n```"}}