{"id":21354684,"url":"https://github.com/renatobritodev/consuming-api","last_synced_at":"2026-05-07T01:31:31.847Z","repository":{"id":209233524,"uuid":"494971707","full_name":"renatobritodev/consuming-api","owner":"renatobritodev","description":"Mini project to consume api.","archived":false,"fork":false,"pushed_at":"2023-03-13T20:22:05.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T18:52:32.745Z","etag":null,"topics":["api","axios","cors","express","javascript","nodejs","nodemon"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renatobritodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-05-22T05:52:28.000Z","updated_at":"2025-04-29T23:17:47.000Z","dependencies_parsed_at":"2023-11-26T02:24:03.181Z","dependency_job_id":"bd55e08f-dc01-421f-a4bb-ed4e02c6a5af","html_url":"https://github.com/renatobritodev/consuming-api","commit_stats":null,"previous_names":["rbdev92/consuming-api","renatobritodev/consuming-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/renatobritodev/consuming-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatobritodev%2Fconsuming-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatobritodev%2Fconsuming-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatobritodev%2Fconsuming-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatobritodev%2Fconsuming-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renatobritodev","download_url":"https://codeload.github.com/renatobritodev/consuming-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatobritodev%2Fconsuming-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32719415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T00:29:05.620Z","status":"ssl_error","status_checked_at":"2026-05-07T00:28:57.074Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","axios","cors","express","javascript","nodejs","nodemon"],"created_at":"2024-11-22T04:14:13.108Z","updated_at":"2026-05-07T01:31:31.831Z","avatar_url":"https://github.com/renatobritodev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Consumir API\n\n## API\n\nCriar um API\n\n- [x] Iniciar o projeto `npm init -y`\n- [x] Instalar as dependências `npm i express nodemon cors axios`\n- [x] Cria uma rota para acessar a API\n- [x] Servir a API\n- [x] Habilitar o CORS (Cross-Origin Resource Sharing)\n- [x] Habilitar o nodemon para reiniciar o server\n\n## Frontend\n\nConsumir APi\n\n- [x] Utilizar fetch para consumir nossa API backend\n- [x] Explicar Promise async/await\n- [x] Usar try/catch\n- [x] Mostrar a resposta na tela\n\n## Backend\n\nConsumir API\n\n- [x] jsonplaceholder `https://jsonplaceholder.typicode.com/`\n- [x] Usar axios\n- [x] Semelhanças entre axios e fetch\n- [x] Usar try/catch\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatobritodev%2Fconsuming-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenatobritodev%2Fconsuming-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatobritodev%2Fconsuming-api/lists"}