Syntax highlighted response body
Custom request headers
API URL, theme, layout and request headers stored in URL fragment
Support for Spring Data Rest profiles to populate properties in request editor
You can play with a running demo here. I host this demo at Heroku, so please give it a little time to warm up (This might take up to 1 minute).
npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
npm run build to build the project in production mode. The build artifacts will be stored in the
Gradle/Java Build Support
If you have Java installed, you can also build the project with Gradle. The Gradle build will install node.js locally in the project directory.
./gradlew build to build the project in production mode. The build artifacts will be stored in the
Integration in your Backends
If you want to use a released version of HAL Explorer in a Java based project, you could define a dependency to the HAL Explorer WebJar.
<dependency> <groupId>org.webjars</groupId> <artifactId>hal-explorer</artifactId> <version>0.9.5</version> </dependency>
When you use the WebJar with Spring Boot, you can access the HAL Explorer at
The easiest way to integrate the upstream version of HAL Explorer into your backend would be to clone this Git repo,
do a production build and then copy the content of the dist folder to a location accessible by your backend server. When you use Spring Boot, a good location in your projects source tree would be src/main/java/resources/static/hal-explorer. See https://github.com/toedter/chatty for a concrete integration example.
npm test to run the unit test suite against your default browser,
npm run test-headless to run the unit test suite against headless Chrome.
To run the e2e tests you must have Docker installed.
The e2e tests start a real Spring Boot based backend in a Docker container which is then used by HAL Explorer.
npm run e2e to run the e2e test suite against your default browser.
Take a look at
package.json for more test options.
MIT, see http://toedter.mit-license.org