I am using spring data rest, I have following entities exposed via spring data rest
DonationRequest
@Data
@Entity
@Table(name=\"donation_request\",sc
It can be achieved by using a custom HttpMessageConverter and defining a custom content-type which can be anything other than standard (I used application/mjson):
MHttpMessageConverter.java
public class MHttpMessageConverter implements HttpMessageConverter
CustomRestConfiguration.java
@Configuration
public class CustomRestConfiguration extends RepositoryRestConfigurerAdapter {
@Override
public void configureHttpMessageConverters(List> messageConverters) {
messageConverters.add(new MHttpMessageConverter());
}
}