{"action":"closed","issue":{"url":"https://api.github.com/repos/raigons/uaisoccer/issues/22","labels_url":"https://api.github.com/repos/raigons/uaisoccer/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/raigons/uaisoccer/issues/22/comments","events_url":"https://api.github.com/repos/raigons/uaisoccer/issues/22/events","html_url":"https://github.com/raigons/uaisoccer/issues/22","id":76147174,"number":22,"title":"{API} Find Team by Key","user":{"login":"felipead","id":946848,"avatar_url":"https://avatars.githubusercontent.com/u/946848?v=3","gravatar_id":"","url":"https://api.github.com/users/felipead","html_url":"https://github.com/felipead","followers_url":"https://api.github.com/users/felipead/followers","following_url":"https://api.github.com/users/felipead/following{/other_user}","gists_url":"https://api.github.com/users/felipead/gists{/gist_id}","starred_url":"https://api.github.com/users/felipead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipead/subscriptions","organizations_url":"https://api.github.com/users/felipead/orgs","repos_url":"https://api.github.com/users/felipead/repos","events_url":"https://api.github.com/users/felipead/events{/privacy}","received_events_url":"https://api.github.com/users/felipead/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/raigons/uaisoccer/labels/Story","name":"Story","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-13T22:30:00Z","updated_at":"2015-05-26T13:41:01Z","closed_at":"2015-05-26T13:41:01Z","body":"**As an API consumer \r\nI want to be able to find a team by its key\r\nSo that I can retrieve this information to use along the system**\r\n\r\n## Out of scope\r\nGet Team by ID\r\n\r\n## Notes\r\nThis user story is dependent of the user story #24\r\n\r\n## Assumptions\r\n\r\nThis story is all about the `key` attribute. All the other attributes implemented on the json body remains the same.\r\n\r\nAny other request besides GET must be implemented as an invalid request and must return HTTP 405 (Method Not Allowed) for now.\r\n\r\n## Acceptance Criteria\r\nGiven that I want to find a team by its key `{key}`\r\nWhen I GET to `\\teams?key={key}`\r\nThen the API returns the HTTP status code 200 (OK) and the JSON content as part of its body:\r\n```\r\n[\r\n    { \r\n        ...\r\n        \"key\": {key},\r\n        ...\r\n    }\r\n]\r\n```\r\n\r\nGiven that I try to find a nonexistent team using an invalid key `{key}`\r\nWhen I GET to `\\teams?key={key}`\r\nThen the API returns the HTTP status code 204 (NO CONTENT)\r\n"}}