package uk.ac.ebi.biosamples;

import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebConfiguration extends WebMvcConfigurerAdapter{

    @Override
    public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
        configurer.mediaType("ldjson", new MediaType("application", "ld+json"));
        
    }

}

@@ -559,16 +559,98 @@
 son%22));%0A
+        configurer.mediaType(%22haljson%22, new MediaType(%22application%22, %22hal+json%22));
         

enable use of .haljson