{"action":"opened","issue":{"url":"https://api.github.com/repos/raigons/uaisoccer/issues/54","labels_url":"https://api.github.com/repos/raigons/uaisoccer/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/raigons/uaisoccer/issues/54/comments","events_url":"https://api.github.com/repos/raigons/uaisoccer/issues/54/events","html_url":"https://github.com/raigons/uaisoccer/issues/54","id":83528994,"number":54,"title":"{API} Get list of teams associated to a championship","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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-01T14:31:02Z","updated_at":"2015-06-01T14:31:02Z","closed_at":null,"body":"**As an API consumer\r\nI want to be able to retrieve the list of teams associated to a championship\r\nSo I can know which teams participate in a championship**\r\n\r\n## Out of Scope\r\n- Assign teams to a championship\r\n\r\n## Notes\r\n\r\n## Acceptance Criteria\r\nGiven I am retrieving a list of teams associated to a championship with id {championship_id}\r\nWhen I GET from `/championships/{championship_id}/teams`\r\nAnd the list is not empty\r\nThen the API returns HTTP status code 200 (OK)\r\nAnd a list of teams:\r\n```json\r\n[\r\n\t{ “id”: 1, “name”: “Atlético Mineiro”, “key”: “atletico-mineiro” },\r\n\t{ “id”: 2, “name”: “Cruzeiro”, “key”: “cruzeiro” },\r\n\t…\r\n]\r\n```\r\n\r\nGiven I am retrieving a list of teams associated to a championship with id {championship_id}\r\nWhen I GET from `/championships/{championship_id}/teams`\r\nAnd the list is empty\r\nThen the API returns HTTP status code 204 (No Content)\r\nAnd an empty body."}}