Layer7 API Management

 View Only
  • 1.  Changing Request HTTP Method

    Posted Sep 23, 2020 12:53 PM

    Good afternoon CA Layer7 community. I have a service that can accept PUT, GET, and  POST methods. Within this service I need to first  call a backend service to retrieve a token and that service only supports the GET method. My ask is how do I manage a POST request and swap the method to a GET and then back to a POST when ${request.http.method} is built-in and not settable? Thank you for your time.

     

    Edward Lokiec
    Telephone: 860.226.5977
    E-mail Address:  Ed.Lokiec@CIGNA.com

    image009.png@01CF8950.C7C0E410

     

     

    Confidential, unpublished property of Cigna. Do not duplicate or distribute. Use and distribution limited solely to authorized personnel. © Copyright 2020

     

    ------------------------------------------------------------------------------
    CONFIDENTIALITY NOTICE: If you have received this email in error,
    please immediately notify the sender by e-mail at the address shown. 
    This email transmission may contain confidential information.  This
    information is intended only for the use of the individual(s) or entity to
    whom it is intended even if addressed incorrectly.  Please delete it from
    your files if you are not the intended recipient.  Thank you for your
    compliance.  Copyright (c) 2020 Cigna
    ==============================================================================



  • 2.  RE: Changing Request HTTP Method
    Best Answer

    Broadcom Employee
    Posted Sep 23, 2020 01:34 PM
    You can set the method in the Route via HTTP(S) assertion when you call the token service.



    ------------------------------
    Jay MacDonald - Adoption Architect - Broadcom API Management (Layer 7)
    ------------------------------



  • 3.  RE: Changing Request HTTP Method

    Posted Sep 23, 2020 01:41 PM

    Perfect!!! Thank you.