About a function of "route via http (S)"
search cancel

About a function of "route via http (S)"

book

Article ID: 43631

calendar_today

Updated On:

Products

STARTER PACK-7 CA Rapid App Security CA API Gateway

Issue/Introduction

Question:

 

Does Gateway have function that transform http request method?

 

Client (request method : GET) ----> API Gateway (request method : POST) ----> Back End. 

01.Client send a GET to API Gateway. 

02.API Gateway transform the GET into a POST. 

03.API Gateway send the POST to backend 

Is it a possible?

 

Answer:

For the client to send a GET:

Just make sure it is selected under ‘Allowed HTTP Methods’ in the Service Properties… 

 

To send a POST to the backend:

Set the ‘HTTP Method’ to POST in the routing assertion. 

Also, 

The HTTP Routing assertion you will need to change the request source from the Default Request 

to some other context variable as a Get will not have a payload to send through. 

The request source context variable must be of type ‘message’ or if will not be available to use as a source.

Environment

Release:
Component: APIGTW