apiVersion: v1
kind: ConfigMap
metadata:
  name: integration-party-routing-profile-http
data:
  directs.yaml: |-
    # camel-k: language=yaml
    # camel-k: dependency=camel-quarkus-protobuf
    # camel-k: dependency=mvn:com.redhat.mercury:party-routing-profile-common:1.0.2-SNAPSHOT

    - from:
        uri: direct:Retrieve
        steps:
          - set-body:
              simple: "{\"partyroutingprofileId\": \"${header.partyroutingprofileId}\"}"
          - unmarshal:
              protobuf:
                instance-class: com.redhat.mercury.partyroutingprofile.v10.api.bqstatusservice.BqStatusService$RetrieveStatusRequest
                content-type-format: json
          - to:
              uri: grpc://{{mercury.binding.service.host}}:{{mercury.binding.service.port}}/com.redhat.mercury.partyroutingprofile.v10.api.bqstatusservice.BQStatusService?synchronous=true&method=RetrieveStatus
          - marshal:
              protobuf:
                instance-class: com.redhat.mercury.partyroutingprofile.v10.RetrieveStatusResponseOuterClass$RetrieveStatusResponse
                content-type-format: json