Reputation: 1464
I have just implemented the HAL Browser bundled with spring-data-rest. It is accessible from my API root and is working fine. But I have found no way to customize anything about it. Is it possible to change the browser look and feel mainly for production use? Also is it possible to put it on a different url? Is it recommended for production in the first place? I am using Spring Boot 2.0.
Upvotes: 1
Views: 1806
Reputation: 384
I would not recommend having HAL browser enabled in production. Why would you need it? It is a tool to easily traverse a HATEOAS API within a browser. You can use it in dev/test environment. Production APIs can be referred with Postman, Insomnia like tools.
Having said that, it is possible to modify the look of HAL browser. All HAL browser related web files are located in META-INF/spring-data-rest/hal-browser
. To modify any of these files, you can override them by creating the same folder structure inside src/main/resources
directory, copy the files that you want to modify and update it.
Upvotes: 2