Layer7 API Management

  • 1.  How to change method type

    Posted Mar 13, 2019 03:26 PM

    Hi All, 

     

    I receive a GET method and need to convert it to POST before passing on to a business service but can't use Route Via HTTP to convert GET into POST as it's kept on Automatic as a policy fragment. 

    It seems since it is kept as automatic, it's getting sent to service as GET only.

     

    Is there any way to change it to POST before routing it further ?

     

    Regards,

    Pramod Talekar



  • 2.  Re: How to change method type

    Broadcom Employee
    Posted Mar 13, 2019 06:19 PM

    Dear Pramod.Talekar ,

    If you use a fragment, you can only change it on that fragment, ie. open the policy window of that fragment, then you should be able to make the change. Parent policy is read only for the assertions inside the fragment.

     

    Regards,

    Mark



  • 3.  Re: How to change method type

    Posted Mar 13, 2019 07:15 PM

    Hi Zhijun He

     

    Thanks for your reply.

    Can you please suggest if there's any way to change the method type apart from Route via HTTP assertion ?

     

    Regards,

    Pramod Talekar



  • 4.  Re: How to change method type

    Broadcom Employee
    Posted Mar 13, 2019 07:27 PM

    The route via http assertion is the one to send the request to downstream, specify the method in route via http assertion is the best for your use case.

     

    if the current fragment doesn't meet your need, or you don't want to change it,  you can just build a new one.



  • 5.  Re: How to change method type

    Posted Mar 14, 2019 02:33 PM

    Thanks Zhijun He for the reply.