{"id":18977549,"url":"https://github.com/geicesousa/api-loggi","last_synced_at":"2026-04-09T19:30:18.342Z","repository":{"id":210813100,"uuid":"669964285","full_name":"geicesousa/api-loggi","owner":"geicesousa","description":"mock de api para simular banco de dados","archived":false,"fork":false,"pushed_at":"2023-07-24T01:53:53.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T09:42:16.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/geicesousa.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":"2023-07-24T01:47:43.000Z","updated_at":"2023-07-24T01:53:57.000Z","dependencies_parsed_at":"2023-12-05T03:37:16.068Z","dependency_job_id":null,"html_url":"https://github.com/geicesousa/api-loggi","commit_stats":null,"previous_names":["geicesousa/api-loggi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geicesousa%2Fapi-loggi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geicesousa%2Fapi-loggi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geicesousa%2Fapi-loggi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geicesousa%2Fapi-loggi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geicesousa","download_url":"https://codeload.github.com/geicesousa/api-loggi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239978048,"owners_count":19728271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08T15:29:36.014Z","updated_at":"2026-04-09T19:30:18.284Z","avatar_url":"https://github.com/geicesousa.png","language":"JavaScript","readme":"# Loggi API Mock\n\nUtilizando as bibliotecas [json-server](https://github.com/typicode/json-server) \ne [json-server-auth](https://github.com/jeremyben/json-server-auth) \nfoi criado um mock para simular rastreamento de pedidos.\n\n## Execução\n\n1. Clone o repositório\n2. Instale as dependências\n    ```bash\n    npm install\n    ```\n3. Execute o Mock\n    ```bash\n    npm start\n    ```\n4. Agora você pode acessar os endpoints da API descritos abaixo:\n\n#### Listar todos os pedidos\n```bash\ncurl --request GET \\\n  --url http://localhost:8080/pedidos\n```\n#### Buscar um pedido através do `id`\n\n```bash\ncurl --request GET \\\n  --url http://localhost:8080/pedidos/1\n```\n\n*Resposta de sucesso:*\nStatus HTTP 200\n```json\n{\n\t\"id\": 1,\n\t\"mensageiro\": \"Luigi\",\n\t\"cliente\": \"Renner\",\n\t\"dataPedido\": \"30-06-2023 08:40:10\",\n\t\"localEntrega\": {\n\t\t\"logradouro\": \"Rua Teste\",\n\t\t\"numero\": \"23\",\n\t\t\"bairro\": \"Centro\",\n\t\t\"complemento\": \"prédio cinza\",\n\t\t\"cep\": \"78455000\",\n\t\t\"cidade\": \"Florianópolis\",\n\t\t\"estado\": \"Santa Catarina\"\n\t},\n\t\"localOrigem\": {\n\t\t\"logradouro\": \"Rua Teste\",\n\t\t\"numero\": \"23\",\n\t\t\"bairro\": \"Centro\",\n\t\t\"complemento\": \"prédio cinza\",\n\t\t\"cep\": \"78455000\",\n\t\t\"cidade\": \"Florianópolis\",\n\t\t\"estado\": \"Santa Catarina\"\n\t},\n\t\"dataEntrega\": \"30-06-2023 12:40:10\",\n\t\"status\": \"Finalizado\",\n\t\"historicoStatus\": [\n\t\t{\n\t\t\t\"status\": \"Pedido recebido\",\n\t\t\t\"dataStatus\": \"30-06-2023 08:40:10\"\n\t\t},\n\t\t{\n\t\t\t\"status\": \"Em rota de entrega\",\n\t\t\t\"dataStatus\": \"30-06-2023 09:15:00\",\n\t\t\t\"dataPrevistaEntrega\": \"30-06-2023 12:30:00\"\n\t\t},\n\t\t{\n\t\t\t\"status\": \"Finalizado\",\n\t\t\t\"dataStatus\": \"30-06-2023 12:40:10\"\n\t\t}\n\t]\n}\n```\n\n*Resposta de erro:*\nStatus HTTP 404\n```json\n{}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeicesousa%2Fapi-loggi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeicesousa%2Fapi-loggi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeicesousa%2Fapi-loggi/lists"}