Skip to content

Commit

Permalink
fix(config): added patient and payment endpoints (#50)
Browse files Browse the repository at this point in the history
* chore: add payments service to configuration

* chore: update service configurations for payments, plans, patients, and clinics

---------

Co-authored-by: Alvaro Jesus Bernal Caunedo <80347035+alvarobernal2412@users.noreply.github.com>
  • Loading branch information
margarcac1 and alvarobernal2412 authored Jan 3, 2025
1 parent c8d43b7 commit 68f27b1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
22 changes: 20 additions & 2 deletions config.yaml.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
api_gateway_url: "0.0.0.0:8080"
is_https: false
authorization_api_url: "http://localhost:3001/auth/api/v1/token/validate"
authorization_api_url: "http://authorization-svc:3001/api/v1/token/validate"
services:
- path: "/api/v1/login"
target_service: "http://authorization-svc"
Expand All @@ -16,11 +16,29 @@ services:
target_service: "http://authorization-svc"
target_port: "3001"
- path: "/api/v1/payments"
target_service: "http://payments-svc"
target_service: "http://payment-svc"
target_port: "3003"
- path: "/api/v1/plans"
target_service: "http://payment-svc"
target_port: "3003"
- path: "/api/v1/clinics"
target_service: "http://payment-svc"
target_port: "3003"
- path: "/api/v1/patients"
target_service: "http://patient-svc"
target_port: "3005"
- path: "/api/v1/patients"
target_service: "http://patients-svc"
target_port: "3006"
- path: "/api/v1/staff"
target_service: "http://staff-svc"
target_port: "3007"
- path: "/api/v1/workshifts"
target_service: "http://workshift"
target_port: "3011"
- path: "/api/v1/appointments"
target_service: "http://appointment"
target_port: "3012"
endpoints_without_auth:
- endpoint: "/api/v1/users/verify-2fa"
method: "POST"
Expand Down
17 changes: 13 additions & 4 deletions config.yaml.prod
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,23 @@ services:
target_service: "http://authorization-svc"
target_port: "3001"
- path: "/api/v1/payments"
target_service: "http://payments-svc"
target_service: "http://payment-svc"
target_port: "3003"
- path: "/api/v1/plans"
target_service: "http://payment-svc"
target_port: "3003"
- path: "/api/v1/clinics"
target_service: "http://payment-svc"
target_port: "3003"
- path: "/api/v1/staff"
target_service: "http://staff-svc"
target_port: "3007"
- path: "/api/v1/patients"
target_service: "http://patient-svc"
target_port: "3005"
- path: "/api/v1/patients"
target_service: "http://patients-svc"
target_port: "3006"
- path: "/api/v1/staff"
target_service: "http://staff-svc"
target_port: "3007"
- path: "/api/v1/workshifts"
target_service: "http://workshift"
target_port: "3011"
Expand Down

0 comments on commit 68f27b1

Please sign in to comment.