{"action":"opened","issue":{"url":"https://api.github.com/repos/deividfortuna/fipe/issues/8","repository_url":"https://api.github.com/repos/deividfortuna/fipe","labels_url":"https://api.github.com/repos/deividfortuna/fipe/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/deividfortuna/fipe/issues/8/comments","events_url":"https://api.github.com/repos/deividfortuna/fipe/issues/8/events","html_url":"https://github.com/deividfortuna/fipe/issues/8","id":168432648,"number":8,"title":"Tratamento de solicitações inválidas na API","user":{"login":"toreti","id":1796597,"avatar_url":"https://avatars.githubusercontent.com/u/1796597?v=3","gravatar_id":"","url":"https://api.github.com/users/toreti","html_url":"https://github.com/toreti","followers_url":"https://api.github.com/users/toreti/followers","following_url":"https://api.github.com/users/toreti/following{/other_user}","gists_url":"https://api.github.com/users/toreti/gists{/gist_id}","starred_url":"https://api.github.com/users/toreti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toreti/subscriptions","organizations_url":"https://api.github.com/users/toreti/orgs","repos_url":"https://api.github.com/users/toreti/repos","events_url":"https://api.github.com/users/toreti/events{/privacy}","received_events_url":"https://api.github.com/users/toreti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T23:21:55Z","updated_at":"2016-07-29T23:21:55Z","closed_at":null,"body":"É necessário padronizar na API o retorno de solicitações inválidas, para que na programação possam ser realizadas verificações.\r\n\r\nAtualmente na consulta de modelos uma solicitação inválida retorna um objeto com atributos vazios:\r\n[https://fipe-parallelum.rhcloud.com/api/v1/carros/marcas/1000/modelos](https://fipe-parallelum.rhcloud.com/api/v1/carros/marcas/1000/modelos)\r\n\r\nE na consulta de anos e veículos é retornado um erro 404:\r\n[https://fipe-parallelum.rhcloud.com/api/v1/carros/marcas/1000/modelos/1000/anos](https://fipe-parallelum.rhcloud.com/api/v1/carros/marcas/1000/modelos/1000/anos)\r\n[https://fipe-parallelum.rhcloud.com/api/v1/carros/marcas/1000/modelos/1000/anos/1000](https://fipe-parallelum.rhcloud.com/api/v1/carros/marcas/1000/modelos/1000/anos/1000)"}}
{"actor":{"display_login":"toreti"}}