@Override
    public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
        configurer
                .favorParameter(false)
                .favorPathExtension(false)
                .ignoreAcceptHeader(true)
                .defaultContentType(APPLICATION_JSON, TEXT_PLAIN);
    }
Disable all 3 (Accept header, url parameter, path extension) strategies of content
negotiation and only allow <code>application/json</code> and <code>text/plain</code> types.
<br>

<p>Any "mapping" that is annotated with <code>produces=TEXT_PLAIN_VALUE</code> will be sent
as <code>text/plain</code> all others as <code>application/json</code>.<br>
More details on Spring MVC content negotiation can be found at <a
href="https://spring.io/blog/2013/05/11/content-negotiation-using-spring-mvc">https://spring.io/blog/2013/05/11/content-negotiation-using-spring-mvc</a>
<br>
rest/src/main/java/com/netflix/conductor/rest/config/RestConfiguration.java