@BasePathAwareController public class HalBrowser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BROWSER_INDEX |
Constructor and Description |
---|
HalBrowser(RepositoryRestConfiguration configuration)
Creates a new
HalBrowser for the given RepositoryRestConfiguration . |
Modifier and Type | Method and Description |
---|---|
View |
browser()
Redirects to the actual
index.html . |
View |
index()
Redirects requests to the API root asking for HTML to the HAL browser.
|
public static String BROWSER_INDEX
@Autowired public HalBrowser(RepositoryRestConfiguration configuration)
HalBrowser
for the given RepositoryRestConfiguration
.configuration
- must not be null.@RequestMapping(value={"/",""}, method=GET, produces="text/html") public View index()
@RequestMapping(value="/browser", method=GET) public View browser()
index.html
.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.