As an example, if I have a Java POJO like this
class Car {
private String model;
private String transmissionType;
private int year;
...
}
and my endpoint returns Car, then the response would look something like this
{
"model": "Porshe 911",
"transmissionType": "Petrol",
"year": 2017
}
What I want to do is, rename the entity such that the response looks like...
{
"model": "Porshe 911",
"transmission_type": "Petrol",
"year": 2017
}
Hope this makes more sense now.