{"action":"opened","issue":{"url":"https://api.github.com/repos/rmallols/kodflix/issues/32","repository_url":"https://api.github.com/repos/rmallols/kodflix","labels_url":"https://api.github.com/repos/rmallols/kodflix/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/rmallols/kodflix/issues/32/comments","events_url":"https://api.github.com/repos/rmallols/kodflix/issues/32/events","html_url":"https://github.com/rmallols/kodflix/issues/32","id":335705204,"node_id":"MDU6SXNzdWUzMzU3MDUyMDQ=","number":32,"title":"Create a new endpoint on the backend to return a specific show","user":{"login":"rmallols","id":264750,"node_id":"MDQ6VXNlcjI2NDc1MA==","avatar_url":"https://avatars3.githubusercontent.com/u/264750?v=4","gravatar_id":"","url":"https://api.github.com/users/rmallols","html_url":"https://github.com/rmallols","followers_url":"https://api.github.com/users/rmallols/followers","following_url":"https://api.github.com/users/rmallols/following{/other_user}","gists_url":"https://api.github.com/users/rmallols/gists{/gist_id}","starred_url":"https://api.github.com/users/rmallols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmallols/subscriptions","organizations_url":"https://api.github.com/users/rmallols/orgs","repos_url":"https://api.github.com/users/rmallols/repos","events_url":"https://api.github.com/users/rmallols/events{/privacy}","received_events_url":"https://api.github.com/users/rmallols/received_events","type":"User","site_admin":false},"labels":[{"id":973299071,"node_id":"MDU6TGFiZWw5NzMyOTkwNzE=","url":"https://api.github.com/repos/rmallols/kodflix/labels/Backend%20(Node.js)","name":"Backend (Node.js)","color":"3a3093","default":false},{"id":973298651,"node_id":"MDU6TGFiZWw5NzMyOTg2NTE=","url":"https://api.github.com/repos/rmallols/kodflix/labels/JavaScript%20&%20React","name":"JavaScript & React","color":"bcef8d","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-26T08:10:15Z","updated_at":"2018-06-26T08:10:15Z","closed_at":null,"author_association":"OWNER","body":"At the moment, we have a single endpoint (`/rest/shows`), returning the list of all shows.\r\n\r\nThis is fine for the landing page (`localhost:3000`), but not really for the `Details` component, as we have to:\r\n\r\n1. [Backend] Return the whole list of TV shows (we may have thousands, so me may ruin the customer data plan!)\r\n2. [Frontend] Filter them out, to just track the show matching the `id` available on the URL.\r\n\r\nYou can smell how inefficient this is. Let's start talking about filtering, so, on the `Details` component, we:\r\n1. [Backend] Return the a single TV show from (the one matching the `id` available on the URL).\r\n2. [Frontend] Stop filtering, as we've done that already on the backend side."}}
{"actor":{"display_login":"rmallols"}}