apigee / apigee-config-maven-plugin

apigee-config-maven-plugin
Apache License 2.0
55 stars 108 forks source link

Adding business logic for updating Flow Hooks when empty string #180

Closed AyushGupta1-2-3 closed 1 year ago

AyushGupta1-2-3 commented 1 year ago

Hello,

This is a request to update flow hooks when empty string is passed in flowhooks.json Given sample :

[
    {
        "flowHookPoint":"PreProxyFlowHook",
             "sharedFlow": ""    
    },    
    {
         "flowHookPoint":"PostProxyFlowHook",
             "sharedFlow":  ""
    }
]

Currently, when run with maven update option, Apigee management api looks for shared flow name with empty string and fails.

In order to update the flow hook with no shared flow, business logic can be added in update maven option to call detach flow hook apigee management api.

ssvaidyanathan commented 1 year ago

Pushed a logic for this

Try using v2.4.6

Pls reopen if the issue still exist