Body transform problems and questions

Hi,
I’ve tried to answer your question below:

Response transforms need to be targetted on the rewritten URL, not on the inbound one.

Not sure what’s wrong here, we test with Postman all the time, body trnsforms only impact the body of the request and change the content size param, nothing more. Maybe you are responding with the wrong headers. Or the template is crashing, also likely.

The body transform will just try to transform the returned body, regardless of status code

Not really, but you could look at the Hugo Go Template Primer, which is really quite good.

In your example, you may have a problem, since the inbound JSON object has no anchorable fields, so you can’t identify the list as a golang template variable (you might be able to use . (the main context dot), but you’d need to experiment.

Hope that helps! :slightly_smiling:
Martin