Class RepositoryController
java.lang.Object
org.springframework.data.rest.webmvc.RepositoryController
Controller for the root resource exposing links to the repository resources.
- Author:
- Jon Brisbin, Oliver Gierke
-
Constructor Summary
ConstructorDescriptionRepositoryController
(Repositories repositories, RepositoryEntityLinks entityLinks, ResourceMappings mappings) -
Method Summary
Modifier and TypeMethodDescriptionHEAD /
Lists all repositories exported by creating a link list pointing to resources exposing the repositories.HttpEntity<?>
OPTIONS /
.
-
Constructor Details
-
RepositoryController
public RepositoryController(Repositories repositories, RepositoryEntityLinks entityLinks, ResourceMappings mappings) - Parameters:
repositories
- must not be null.entityLinks
- must not be null.mappings
- must not be null.
-
-
Method Details
-
optionsForRepositories
OPTIONS /
.- Returns:
- Since:
- 2.2
-
headForRepositories
HEAD /
- Returns:
- Since:
- 2.2
-
listRepositories
@RequestMapping(value={"/",""}, method=GET) public HttpEntity<RepositoryLinksResource> listRepositories()Lists all repositories exported by creating a link list pointing to resources exposing the repositories.- Returns:
-