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(@Nullable org.springframework.beans.factory.ObjectProvider<JsonApiConfiguration> configuration, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory)
      Parameters:
      configuration - the JsonApiConfiguration object provider
      beanFactory - the Spring bean factory
  • Method Details

    • getMediaTypes

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

      public tools.jackson.databind.json.JsonMapper.Builder configureJsonMapper(tools.jackson.databind.json.JsonMapper.Builder builder)
      Specified by:
      configureJsonMapper in interface org.springframework.hateoas.config.HypermediaMappingInformation