{"id":19492116,"url":"https://github.com/blockpc/api-xhash","last_synced_at":"2026-05-16T10:31:10.678Z","repository":{"id":119490999,"uuid":"477915591","full_name":"blockpc/api-xhash","owner":"blockpc","description":"Api para test xhash","archived":false,"fork":false,"pushed_at":"2022-04-05T11:06:12.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T19:47:00.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/blockpc.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-05T00:05:37.000Z","updated_at":"2022-04-05T00:09:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"226dea68-36e4-4557-8563-aa2dff99211a","html_url":"https://github.com/blockpc/api-xhash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blockpc/api-xhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockpc%2Fapi-xhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockpc%2Fapi-xhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockpc%2Fapi-xhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockpc%2Fapi-xhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blockpc","download_url":"https://codeload.github.com/blockpc/api-xhash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockpc%2Fapi-xhash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33098782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-10T21:19:22.039Z","updated_at":"2026-05-16T10:31:10.663Z","avatar_url":"https://github.com/blockpc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API para test XHash\n\n## Pasos del desarrollo\nSe creo un controlador para recibir la peticion API\nEl controlador recibe `zip_code` como parametro\nSi no no viene el código zip envia un error `404 NotFoundHttpException`\nSi no pilla el código zip enviado en la base de dato lo busca en la pagina proporcionada\nSi lo encuentra, es agregado a la registro de la base de datos.\nSi no hay devolucion de la pagina externa envia un mensaje de error `404 código zip no encontrado`\n\nSe creo un modelo para guardar los códigos zip nuevos \nSe creo un middleware para validar que la peticion inlcuya la cabecera `Accept: application/json` en peticiones GET.\nSe creo un recurso para devolve el objeto desde la base de datos.\nSe manejan algunas excepciones desde la clase `Handler`\n\n- GET /api/zip-codes/{zip_code} HTTP/1.1\n- Host: api.blockpc.cl\n- Accept: application/json","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockpc%2Fapi-xhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockpc%2Fapi-xhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockpc%2Fapi-xhash/lists"}