perbaikan handles bpjs
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
# services-config-complete.yaml
|
||||
# services-config-simple.yaml
|
||||
global:
|
||||
module_name: "api-service"
|
||||
output_dir: "internal/handlers"
|
||||
package_prefix: "api-service"
|
||||
enable_swagger: true
|
||||
enable_logging: true
|
||||
enable_metrics: true
|
||||
|
||||
services:
|
||||
vclaim:
|
||||
@@ -16,29 +14,20 @@ services:
|
||||
base_url: "https://apijkn.bpjs-kesehatan.go.id/vclaim-rest"
|
||||
timeout: 30
|
||||
retry_count: 3
|
||||
middleware:
|
||||
- "RequestLogger"
|
||||
- "ResponseLogger"
|
||||
- "RateLimiter"
|
||||
dependencies:
|
||||
- "database"
|
||||
- "redis"
|
||||
endpoints:
|
||||
peserta:
|
||||
methods: ["GET"]
|
||||
get_path: "/Peserta/:nokartu"
|
||||
get_path: "/peserta/:nokartu"
|
||||
model: "PesertaRequest"
|
||||
response_model: "PesertaResponse"
|
||||
description: "Get participant eligibility information"
|
||||
summary: "Get Participant Info"
|
||||
tags: ["vclaim", "peserta"]
|
||||
require_auth: true
|
||||
rate_limit: 100
|
||||
cache_enabled: true
|
||||
cache_ttl: 300
|
||||
sep:
|
||||
methods: ["GET", "POST", "PUT", "DELETE"]
|
||||
get_path: "/SEP/:nosep"
|
||||
get_path: "/sep/:nosep"
|
||||
post_path: "/sep"
|
||||
put_path: "/sep/:nosep"
|
||||
delete_path: "/sep/:nosep"
|
||||
@@ -47,24 +36,26 @@ services:
|
||||
description: "Manage SEP (Surat Eligibilitas Peserta)"
|
||||
summary: "SEP Management"
|
||||
tags: ["vclaim", "sep"]
|
||||
require_auth: true
|
||||
rate_limit: 50
|
||||
cache_enabled: true
|
||||
cache_ttl: 180
|
||||
custom_headers:
|
||||
X-Service: "VClaim"
|
||||
X-Version: "2.0"
|
||||
rujukan:
|
||||
methods: ["GET"]
|
||||
get_path: "/rujukan/:norujukan"
|
||||
model: "RujukanRequest"
|
||||
response_model: "RujukanResponse"
|
||||
description: "Get referral information"
|
||||
summary: "Get Referral Info"
|
||||
tags: ["vclaim", "rujukan"]
|
||||
require_auth: true
|
||||
rate_limit: 100
|
||||
cache_enabled: true
|
||||
cache_ttl: 600
|
||||
|
||||
|
||||
eclaim:
|
||||
name: "EClaim"
|
||||
category: "eclaim"
|
||||
package: "eclaim"
|
||||
description: "BPJS EClaim service for claim processing"
|
||||
base_url: "https://apijkn.bpjs-kesehatan.go.id/new-eclaim-rest"
|
||||
timeout: 60
|
||||
retry_count: 2
|
||||
endpoints:
|
||||
klaim:
|
||||
methods: ["GET", "POST", "PUT"]
|
||||
get_path: "/klaim/:noklaim"
|
||||
post_path: "/klaim"
|
||||
put_path: "/klaim/:noklaim"
|
||||
model: "KlaimRequest"
|
||||
response_model: "KlaimResponse"
|
||||
description: "Manage insurance claims"
|
||||
summary: "Claim Management"
|
||||
tags: ["eclaim", "klaim"]
|
||||
cache_enabled: false
|
||||
|
||||
Reference in New Issue
Block a user