0

how to transform query parameters from camelCase to snake_case in TYK Gateway?

For example, https://gateway.com?firstName=John&lastName=Doe to https://upstream.com?first_name=John&last_name=Doe

username_jj
  • 245
  • 1
  • 10
  • I think this has been answered in the Tyk forum: https://community.tyk.io/t/how-to-transform-query-parameters-from-camelcase-to-snake-case/6027 – Faye Dec 15 '22 at 07:53

1 Answers1

1

I think you could achieve your goal with a custom plugin. There isn't an inbuilt middleware that allows you to transform the query parameters to your desired result.

The code for your plugin would be in the Request lifecycle and would take advantage of the request object. There are a few examples that can get you started on using custom plugins