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.