Class RepositoryRestProperties
java.lang.Object
org.springframework.boot.autoconfigure.data.rest.RepositoryRestProperties
@ConfigurationProperties(prefix="spring.data.rest")
public class RepositoryRestProperties
extends Object
Configuration properties for Spring Data REST.
- Since:
- 1.3.0
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyTo
(org.springframework.data.rest.core.config.RepositoryRestConfiguration rest) org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies
void
setBasePath
(String basePath) void
setDefaultMediaType
(MediaType defaultMediaType) void
setDefaultPageSize
(Integer defaultPageSize) void
setDetectionStrategy
(org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies detectionStrategy) void
setEnableEnumTranslation
(Boolean enableEnumTranslation) void
setLimitParamName
(String limitParamName) void
setMaxPageSize
(Integer maxPageSize) void
setPageParamName
(String pageParamName) void
setReturnBodyOnCreate
(Boolean returnBodyOnCreate) void
setReturnBodyOnUpdate
(Boolean returnBodyOnUpdate) void
setSortParamName
(String sortParamName)
-
Constructor Details
-
RepositoryRestProperties
public RepositoryRestProperties()
-
-
Method Details
-
getBasePath
-
setBasePath
-
getDefaultPageSize
-
setDefaultPageSize
-
getMaxPageSize
-
setMaxPageSize
-
getPageParamName
-
setPageParamName
-
getLimitParamName
-
setLimitParamName
-
getSortParamName
-
setSortParamName
-
getDetectionStrategy
public org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies getDetectionStrategy() -
setDetectionStrategy
public void setDetectionStrategy(org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies detectionStrategy) -
getDefaultMediaType
-
setDefaultMediaType
-
getReturnBodyOnCreate
-
setReturnBodyOnCreate
-
getReturnBodyOnUpdate
-
setReturnBodyOnUpdate
-
getEnableEnumTranslation
-
setEnableEnumTranslation
-
applyTo
public void applyTo(org.springframework.data.rest.core.config.RepositoryRestConfiguration rest)
-