I am trying to make a GET request transform to a POST request with a URL rewrite.
Request:
GET /foo
Desired result:
POST /bar -d ‘{json stuff}’
I’ve tried a number of things with the URL rewrite in the UI, but it doesn’t seem to work. Is there a way to do this in the UI? If not, is there a way to do it with Middleware? If so, how?
Thank you Leon, that seems to work for the translating the request.
Another question: The body transform doesn’t appear to be working now. I have a template where I’m attempting to insert a path parameter, but it isn’t including the template on the request.