| Package | Description |
|---|---|
| org.springframework.data.rest.core.config | |
| org.springframework.data.rest.core.support |
| Modifier and Type | Method and Description |
|---|---|
RepositoryRestConfiguration |
RepositoryRestConfiguration.exposeIdsFor(Class<?>... domainTypes)
Set the list of domain types for which we will expose the ID value as a normal property.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setBasePath(String basePath)
Configures the base path to be used by Spring Data REST to expose repository resources.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setDefaultMediaType(org.springframework.http.MediaType defaultMediaType)
Set the
MediaType to use as a default when none is specified. |
RepositoryRestConfiguration |
RepositoryRestConfiguration.setDefaultPageSize(int defaultPageSize)
Set the default size of
Pageables. |
RepositoryRestConfiguration |
RepositoryRestConfiguration.setEnableEnumTranslation(boolean enableEnumTranslation)
Configures whether to enable enum value translation via the Spring Data REST default resource bundle.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setLimitParamName(String limitParamName)
Set the name of the URL query string parameter that indicates how many results to return at once.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setMaxPageSize(int maxPageSize)
Set the maximum size of pages.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setPageParamName(String pageParamName)
Set the name of the URL query string parameter that indicates what page to return.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setRepositoryDetectionStrategy(RepositoryDetectionStrategy repositoryDetectionStrategy)
Configures the
RepositoryDetectionStrategy to be used to determine which repositories get exposed. |
RepositoryRestConfiguration |
RepositoryRestConfiguration.setReturnBodyForPutAndPost(Boolean returnBody)
Convenience method to activate returning response bodies for all
PUT and POST requests, i.e. both
creating and updating entities. |
RepositoryRestConfiguration |
RepositoryRestConfiguration.setReturnBodyOnCreate(Boolean returnBody)
Set whether to return a response body after creating an entity.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setReturnBodyOnUpdate(Boolean returnBodyOnUpdate)
Set whether to return a response body after updating an entity.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.setSortParamName(String sortParamName)
Set the name of the URL query string parameter that indicates what direction to sort results.
|
RepositoryRestConfiguration |
RepositoryRestConfiguration.useHalAsDefaultJsonMediaType(boolean useHalAsDefaultJsonMediaType)
Configures whether HAL will be served as primary representation in case on
application/json is requested. |
| Modifier and Type | Method and Description |
|---|---|
static String |
ResourceMappingUtils.formatRel(RepositoryRestConfiguration config,
org.springframework.data.repository.core.RepositoryInformation repoInfo,
org.springframework.data.mapping.PersistentProperty<?> persistentProperty)
Deprecated.
|
static ResourceMapping |
ResourceMappingUtils.getResourceMapping(RepositoryRestConfiguration config,
org.springframework.data.mapping.PersistentEntity<?,?> persistentEntity)
Deprecated.
|
static ResourceMapping |
ResourceMappingUtils.getResourceMapping(RepositoryRestConfiguration config,
org.springframework.data.repository.core.RepositoryInformation repoInfo)
Deprecated.
|
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.