diff --git a/config/onix-bap/onix-adapter.yaml b/config/onix-bap/adapter.yaml similarity index 64% rename from config/onix-bap/onix-adapter.yaml rename to config/onix-bap/adapter.yaml index 3dd272d..a95c53f 100644 --- a/config/onix-bap/onix-adapter.yaml +++ b/config/onix-bap/adapter.yaml @@ -22,31 +22,26 @@ modules: handler: type: std role: bap - trace: - # validateSign: true - # addRoute: true - # validateSchema: true - # reqpreprocessor: true registryUrl: http://localhost:8080/reg plugins: keyManager: id: secretskeymanager config: - projectID: trusty-relic-370809 + projectID: ${projectID} cache: id: redis config: - addr: 10.81.192.4:6379 - # schemaValidator: - # id: schemavalidator - # config: - # schemaDir: /mnt/gcs/configs/schemas + addr: 192.168.1.1:6379 + schemaValidator: + id: schemavalidator + config: + schemaDir: /mnt/gcs/configs/schemas signValidator: id: signvalidator publisher: id: publisher config: - project: trusty-relic-370809 + project: ${projectID} topic: bapNetworkReciever router: id: router @@ -60,7 +55,7 @@ modules: steps: - validateSign - addRoute - # - validateSchema + - validateSchema - name: bapTxnCaller path: /bap/caller/ handler: @@ -71,21 +66,21 @@ modules: keyManager: id: secretskeymanager config: - projectID: trusty-relic-370809 + projectID: ${projectID} cache: id: redis config: - addr: 10.81.192.4:6379 - # schemaValidator: - # id: schemavalidator - # config: - # schemaDir: /mnt/gcs/configs/schemas + addr: 192.168.1.1:6379 + schemaValidator: + id: schemavalidator + config: + schemaDir: /mnt/gcs/configs/schemas signer: id: signer publisher: id: publisher config: - project: trusty-relic-370809 + project: ${projectID} topic: bapNetworkReciever router: id: router @@ -97,21 +92,6 @@ modules: uuidKeys: transaction_id,message_id role: bap steps: - # - validateSchema + - validateSchema - addRoute - - sign - - path: /bap/subscribe - handler: - type: npSub - role: bap - registryUrl: http://localhost:8080/reg - plugins: - keyManager: - id: secretskeymanager - config: - projectID: trusty-relic-370809 - cache: - id: redis - config: - addr: 10.81.192.4:6379 \ No newline at end of file + - sign \ No newline at end of file diff --git a/config/onix-bap/bapTxnCaller-routing.yaml b/config/onix-bap/bapTxnCaller-routing.yaml index 3d59ad0..b1d5a44 100644 --- a/config/onix-bap/bapTxnCaller-routing.yaml +++ b/config/onix-bap/bapTxnCaller-routing.yaml @@ -1,4 +1,25 @@ -routes: - - action: search - type: url - target: http://localhost:8080/bpp/reciever/search \ No newline at end of file +routingRules: + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "bpp" + target: + url: "https://gateway.example.com" + endpoints: + - search + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "bpp" + endpoints: + - select + - init + - confirm + - status + - cancel + - domain: "ONDC:TRV12" + version: "2.0.0" + routingType: "bpp" + endpoints: + - select + - init + - confirm + - status \ No newline at end of file diff --git a/config/onix-bap/bapTxnReciever-routing.yaml b/config/onix-bap/bapTxnReciever-routing.yaml index 7c4da0d..ca4a478 100644 --- a/config/onix-bap/bapTxnReciever-routing.yaml +++ b/config/onix-bap/bapTxnReciever-routing.yaml @@ -1,4 +1,20 @@ -routes: - - action: on_search - type: publisher - target: bapNetworkReciever \ No newline at end of file +routingRules: + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "url" + target: + url: "https://services-backend/trv/v1" + endpoints: + - on_select + - on_init + - on_confirm + - on_status + - on_update + - on_cancel + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "msgq" + target: + topic_id: "trv_topic_id1" + endpoints: + - on_search \ No newline at end of file diff --git a/config/onix-bpp/onix-adapter.yaml b/config/onix-bpp/adapter.yaml similarity index 76% rename from config/onix-bpp/onix-adapter.yaml rename to config/onix-bpp/adapter.yaml index d031527..8994980 100644 --- a/config/onix-bpp/onix-adapter.yaml +++ b/config/onix-bpp/adapter.yaml @@ -28,21 +28,21 @@ modules: keyManager: id: secretskeymanager config: - projectID: trusty-relic-370809 + projectID: ${projectID} cache: id: redis config: - addr: 10.81.192.4:6379 - # schemaValidator: - # id: schemavalidator - # config: - # schemaDir: /mnt/gcs/configs/schemas + addr: 192.168.1.1:6379 + schemaValidator: + id: schemavalidator + config: + schemaDir: /mnt/gcs/configs/schemas signValidator: id: signvalidator publisher: id: publisher config: - project: trusty-relic-370809 + project: ${projectID} topic: bapNetworkReciever router: id: router @@ -56,7 +56,7 @@ modules: steps: - validateSign - addRoute - # - validateSchema + - validateSchema - name: bppTxnCaller path: /bpp/caller/ handler: @@ -67,21 +67,21 @@ modules: keyManager: id: secretskeymanager config: - projectID: trusty-relic-370809 + projectID: ${projectID} cache: id: redis config: - addr: 10.81.192.4:6379 - # schemaValidator: - # id: schemavalidator - # config: - # schemaDir: /mnt/gcs/configs/schemas + addr: 192.168.1.1:6379 + schemaValidator: + id: schemavalidator + config: + schemaDir: /mnt/gcs/configs/schemas signer: id: signer publisher: id: publisher config: - project: trusty-relic-370809 + project: ${projectID} topic: bapNetworkReciever router: id: router @@ -93,6 +93,6 @@ modules: uuidKeys: transaction_id,message_id role: bpp steps: - # - validateSchema + - validateSchema - addRoute - sign diff --git a/config/onix-bpp/bppTxnCaller-routing.yaml b/config/onix-bpp/bppTxnCaller-routing.yaml index 688b9af..0d9a670 100644 --- a/config/onix-bpp/bppTxnCaller-routing.yaml +++ b/config/onix-bpp/bppTxnCaller-routing.yaml @@ -1,4 +1,23 @@ -routes: - - action: on_search - type: url - target: http://localhost:8080/bap/reciever/on_search \ No newline at end of file +routingRules: + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "bap" + endpoints: + - on_search + - on_select + - on_init + - on_confirm + - on_status + - on_update + - on_cancel + - domain: "ONDC:TRV11" + version: "2.0.0" + routingType: "bap" + endpoints: + - on_search + - on_select + - on_init + - on_confirm + - on_status + - on_update + - on_cancel \ No newline at end of file diff --git a/config/onix-bpp/bppTxnReciever-routing.yaml b/config/onix-bpp/bppTxnReciever-routing.yaml index e9ba98c..6febce6 100644 --- a/config/onix-bpp/bppTxnReciever-routing.yaml +++ b/config/onix-bpp/bppTxnReciever-routing.yaml @@ -1,4 +1,30 @@ -routes: - - action: search - type: publisher - target: bapNetworkReciever \ No newline at end of file +routingRules: + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "url" + target: + url: "https://services-backend/trv/v1" + endpoints: + - select + - init + - confirm + - status + - cancel + + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "msgq" + target: + topic_id: "trv_topic_id1" + endpoints: + - search + + - domain: "ONDC:TRV11" + version: "2.0.0" + routingType: "url" + target: + url: "https://services-backend/trv/v1" + endpoints: + - select + - init + - confirm \ No newline at end of file diff --git a/config/onix/onix-adapter.yaml b/config/onix/adapter.yaml similarity index 73% rename from config/onix/onix-adapter.yaml rename to config/onix/adapter.yaml index 5a2c5fd..a626c4e 100644 --- a/config/onix/onix-adapter.yaml +++ b/config/onix/adapter.yaml @@ -22,31 +22,26 @@ modules: handler: type: std role: bap - trace: - # validateSign: true - # addRoute: true - # validateSchema: true - # reqpreprocessor: true registryUrl: http://localhost:8080/reg plugins: keyManager: id: secretskeymanager config: - projectID: trusty-relic-370809 + projectID: ${projectID} cache: id: redis config: addr: 10.81.192.4:6379 - # schemaValidator: - # id: schemavalidator - # config: - # schemaDir: /mnt/gcs/configs/schemas + schemaValidator: + id: schemavalidator + config: + schemaDir: /mnt/gcs/configs/schemas signValidator: id: signvalidator publisher: id: publisher config: - project: trusty-relic-370809 + project: ${projectID} topic: bapNetworkReciever router: id: router @@ -60,7 +55,7 @@ modules: steps: - validateSign - addRoute - # - validateSchema + - validateSchema - name: bapTxnCaller path: /bap/caller/ handler: @@ -71,21 +66,21 @@ modules: keyManager: id: secretskeymanager config: - projectID: trusty-relic-370809 + projectID: ${projectID} cache: id: redis config: - addr: 10.81.192.4:6379 - # schemaValidator: - # id: schemavalidator - # config: - # schemaDir: /mnt/gcs/configs/schemas + addr: 192.168.1.1:6379 + schemaValidator: + id: schemavalidator + config: + schemaDir: /mnt/gcs/configs/schemas signer: id: signer publisher: id: publisher config: - project: trusty-relic-370809 + project: ${projectID} topic: bapNetworkReciever router: id: router @@ -97,7 +92,7 @@ modules: uuidKeys: transaction_id,message_id role: bap steps: - # - validateSchema + - validateSchema - addRoute - sign - name: bppTxnReciever @@ -111,21 +106,21 @@ modules: keyManager: id: secretskeymanager config: - projectID: trusty-relic-370809 + projectID: ${projectID} cache: id: redis config: - addr: 10.81.192.4:6379 - # schemaValidator: - # id: schemavalidator - # config: - # schemaDir: /mnt/gcs/configs/schemas + addr: 192.168.1.1:6379 + schemaValidator: + id: schemavalidator + config: + schemaDir: /mnt/gcs/configs/schemas signValidator: id: signvalidator publisher: id: publisher config: - project: trusty-relic-370809 + project: ${projectID} topic: bapNetworkReciever router: id: router @@ -139,7 +134,7 @@ modules: steps: - validateSign - addRoute - # - validateSchema + - validateSchema - name: bppTxnCaller path: /bpp/caller/ handler: @@ -150,21 +145,21 @@ modules: keyManager: id: secretskeymanager config: - projectID: trusty-relic-370809 + projectID: ${projectID} cache: id: redis config: - addr: 10.81.192.4:6379 - # schemaValidator: - # id: schemavalidator - # config: - # schemaDir: /mnt/gcs/configs/schemas + addr: 192.168.1.1:6379 + schemaValidator: + id: schemavalidator + config: + schemaDir: /mnt/gcs/configs/schemas signer: id: signer publisher: id: publisher config: - project: trusty-relic-370809 + project: ${projectID} topic: bapNetworkReciever router: id: router @@ -176,6 +171,6 @@ modules: uuidKeys: transaction_id,message_id role: bpp steps: - # - validateSchema + - validateSchema - addRoute - sign diff --git a/config/onix/bapTxnCaller-routing.yaml b/config/onix/bapTxnCaller-routing.yaml index 3d59ad0..b1d5a44 100644 --- a/config/onix/bapTxnCaller-routing.yaml +++ b/config/onix/bapTxnCaller-routing.yaml @@ -1,4 +1,25 @@ -routes: - - action: search - type: url - target: http://localhost:8080/bpp/reciever/search \ No newline at end of file +routingRules: + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "bpp" + target: + url: "https://gateway.example.com" + endpoints: + - search + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "bpp" + endpoints: + - select + - init + - confirm + - status + - cancel + - domain: "ONDC:TRV12" + version: "2.0.0" + routingType: "bpp" + endpoints: + - select + - init + - confirm + - status \ No newline at end of file diff --git a/config/onix/bapTxnReciever-routing.yaml b/config/onix/bapTxnReciever-routing.yaml index 7c4da0d..ca4a478 100644 --- a/config/onix/bapTxnReciever-routing.yaml +++ b/config/onix/bapTxnReciever-routing.yaml @@ -1,4 +1,20 @@ -routes: - - action: on_search - type: publisher - target: bapNetworkReciever \ No newline at end of file +routingRules: + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "url" + target: + url: "https://services-backend/trv/v1" + endpoints: + - on_select + - on_init + - on_confirm + - on_status + - on_update + - on_cancel + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "msgq" + target: + topic_id: "trv_topic_id1" + endpoints: + - on_search \ No newline at end of file diff --git a/config/onix/bppTxnCaller-routing.yaml b/config/onix/bppTxnCaller-routing.yaml index 688b9af..0d9a670 100644 --- a/config/onix/bppTxnCaller-routing.yaml +++ b/config/onix/bppTxnCaller-routing.yaml @@ -1,4 +1,23 @@ -routes: - - action: on_search - type: url - target: http://localhost:8080/bap/reciever/on_search \ No newline at end of file +routingRules: + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "bap" + endpoints: + - on_search + - on_select + - on_init + - on_confirm + - on_status + - on_update + - on_cancel + - domain: "ONDC:TRV11" + version: "2.0.0" + routingType: "bap" + endpoints: + - on_search + - on_select + - on_init + - on_confirm + - on_status + - on_update + - on_cancel \ No newline at end of file diff --git a/config/onix/bppTxnReciever-routing.yaml b/config/onix/bppTxnReciever-routing.yaml index e9ba98c..6febce6 100644 --- a/config/onix/bppTxnReciever-routing.yaml +++ b/config/onix/bppTxnReciever-routing.yaml @@ -1,4 +1,30 @@ -routes: - - action: search - type: publisher - target: bapNetworkReciever \ No newline at end of file +routingRules: + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "url" + target: + url: "https://services-backend/trv/v1" + endpoints: + - select + - init + - confirm + - status + - cancel + + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "msgq" + target: + topic_id: "trv_topic_id1" + endpoints: + - search + + - domain: "ONDC:TRV11" + version: "2.0.0" + routingType: "url" + target: + url: "https://services-backend/trv/v1" + endpoints: + - select + - init + - confirm \ No newline at end of file