{"id":30175585,"url":"https://github.com/rd-ricardo/ambevorder","last_synced_at":"2025-08-12T01:39:43.926Z","repository":{"id":302950141,"uuid":"1013934024","full_name":"RD-Ricardo/AmbevOrder","owner":"RD-Ricardo","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-04T23:09:57.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-05T00:24:43.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/RD-Ricardo.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,"zenodo":null}},"created_at":"2025-07-04T18:09:17.000Z","updated_at":"2025-07-04T23:10:01.000Z","dependencies_parsed_at":"2025-07-05T00:25:24.777Z","dependency_job_id":null,"html_url":"https://github.com/RD-Ricardo/AmbevOrder","commit_stats":null,"previous_names":["rd-ricardo/ambevorder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RD-Ricardo/AmbevOrder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RD-Ricardo%2FAmbevOrder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RD-Ricardo%2FAmbevOrder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RD-Ricardo%2FAmbevOrder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RD-Ricardo%2FAmbevOrder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RD-Ricardo","download_url":"https://codeload.github.com/RD-Ricardo/AmbevOrder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RD-Ricardo%2FAmbevOrder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269986738,"owners_count":24508150,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-08-12T01:39:42.532Z","updated_at":"2025-08-12T01:39:43.888Z","avatar_url":"https://github.com/RD-Ricardo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛒 Order Service – Gestão de Pedidos com Integração Externa\n\nEste projeto implementa um serviço de **gestão e cálculo de pedidos**\n\nO serviço **Order** atua como um orquestrador de pedidos:\n\n- 🔁 Recebe pedidos do **Produto Externo A** via API REST.\n- 🧠 Realiza o **cálculo do valor total do pedido**, considerando o valor de cada produto multiplicado pela quantidade e somando o frete.\n- 📤 Exponibiliza os **pedidos processados** para o **Produto Externo B** via uma API REST de consulta.\n\n---\n\n## 🧱 Tecnologias Utilizadas\n\n- [.NET 8](https://dotnet.microsoft.com/en-us/)\n- [Azure Service Bus](https://learn.microsoft.com/azure/service-bus-messaging/)\n- [PostgreSQL](https://www.postgresql.org/)\n- Repository Pattern\n- API RESTful\n- [AKS (Azure Kubernetes Service)](https://learn.microsoft.com/azure/aks/)\n- [HELM](https://helm.sh/)\n- [Docker](https://www.docker.com/)\n\n### 📦 Exemplo de Requisição Criar Pedido\n\n```bash\ncurl --location 'https://ambev-order-input.rdsolutions.digital/api/OrderInput/create' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n    \"customerName\": \"Ricardo Dias\",\n    \"freightPrice\": 25.50,\n    \"items\": [\n      {\n        \"productName\": \"Cerveja Skol Lata 350ml\",\n        \"price\": 3.50,\n        \"quantity\": 12\n      },\n      {\n        \"productName\": \"Guaraná Antarctica 2L\",\n        \"price\": 6.90,\n        \"quantity\": 3\n      }\n    ]\n  }'\n`````\n\nResponse: \n```bash\n{\n  \"message\": \"Order created successfully\",\n  \"orderId\": \"35fee97e-2125-46d0-8363-9846b60f7b05\"\n}\n`````\n\n### 📦 Exemplo de Requisição Visualisar Produtos Processados:\n```bash\ncurl --location 'https://ambev-order-process.rdsolutions.digital/api/Order'\n`````\n\nReponse:\n\n```bash\n[\n    {\n        \"id\": \"7ee4a40d-df9c-4647-9170-9de9339deae8\",\n        \"externId\": \"35fee97e-2125-46d0-8363-9846b60f7b05\",\n        \"customerName\": \"Ricardo Dias\",\n        \"freightPrice\": 28.05,\n        \"processedAt\": \"2025-07-05T01:16:14.79509Z\",\n        \"paidAt\": \"2025-07-05T01:16:14.79502Z\",\n        \"createdAt\": \"2025-07-05T01:16:14.62636Z\",\n        \"status\": \"Processed\",\n        \"errorMessage\": null,\n        \"totalPrice\": 90.75,\n        \"items\": [\n            {\n                \"id\": \"b592e452-7d71-4301-a309-9ab3a25624dd\",\n                \"productName\": \"Guaraná Antarctica 2L\",\n                \"price\": 6.90,\n                \"quantity\": 3\n            },\n            {\n                \"id\": \"c795b48e-8b7c-4c08-a86a-8f57a2e1aaa6\",\n                \"productName\": \"Cerveja Skol Lata 350ml\",\n                \"price\": 3.50,\n                \"quantity\": 12\n            }\n        ]\n    }\n]\n`````\n\n### AKS\n\n![image](https://github.com/user-attachments/assets/1f9f81d7-d429-43c6-90a6-d69f63fb260b)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frd-ricardo%2Fambevorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frd-ricardo%2Fambevorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frd-ricardo%2Fambevorder/lists"}