Class JsonApiMediaTypeConfiguration

java.lang.Object
com.toedter.spring.hateoas.jsonapi.JsonApiMediaTypeConfiguration
All Implemented Interfaces:
org.springframework.hateoas.config.HypermediaMappingInformation

@Configuration public class JsonApiMediaTypeConfiguration extends Object implements org.springframework.hateoas.config.HypermediaMappingInformation
Spring configuration for JSON:API support.
  • Constructor Details

    • JsonApiMediaTypeConfiguration

      public JsonApiMediaTypeConfiguration(org.springframework.beans.factory.ObjectProvider<JsonApiConfiguration> configuration, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory)
  • Method Details

    • getMediaTypes

      @NonNull public List<org.springframework.http.MediaType> getMediaTypes()
      Specified by:
      getMediaTypes in interface org.springframework.hateoas.config.HypermediaMappingInformation
    • getJacksonModule

      public com.fasterxml.jackson.databind.Module getJacksonModule()
      Specified by:
      getJacksonModule in interface org.springframework.hateoas.config.HypermediaMappingInformation
    • configureObjectMapper

      @NonNull public com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(@NonNull com.fasterxml.jackson.databind.ObjectMapper mapper)
      Specified by:
      configureObjectMapper in interface org.springframework.hateoas.config.HypermediaMappingInformation