| 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.setDefaultMediaType(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.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.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,
RepositoryInformation repoInfo,
PersistentProperty<?> persistentProperty)
Deprecated.
|
static ResourceMapping |
ResourceMappingUtils.getResourceMapping(RepositoryRestConfiguration config,
PersistentEntity<?,?> persistentEntity)
Deprecated.
|
static ResourceMapping |
ResourceMappingUtils.getResourceMapping(RepositoryRestConfiguration config,
RepositoryInformation repoInfo)
Deprecated.
|
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.