How to map response or request payload on APIGEE

Former Community Member
Not applicable

Hi,

I have a few existing Specs that have two formats in the request and response payload properties:

  • kebab-case
  • under_score

I would like to standardize the design by making the payload property names to camelCase.

How do I map the camelCase format to the kebab-case or under_score property that the backend expects?

Solved Solved
0 1 547
1 ACCEPTED SOLUTION

sidd-harth
Participant V

There is no OOTB policy for this usecase.

Maybe you can have a look at a similar usecase done using Javascript policy,

https://community.apigee.com/questions/65762/convert-each-field-in-json-object-from-camel-case.html

View solution in original post

1 REPLY 1

sidd-harth
Participant V

There is no OOTB policy for this usecase.

Maybe you can have a look at a similar usecase done using Javascript policy,

https://community.apigee.com/questions/65762/convert-each-field-in-json-object-from-camel-case.html