Exploring Api's with Spring Boot HAL Explorer
- HAL stands for JSON Hypertext Application Language
- Its a simple formate that gives a consistent and easy way to hyperlink between resources in our API
- HAL Explorer
- is an API Explorer for Restful Hypermedia API's Using HAL
- It helps you to enable your non-technical teams to play with API's
- Spring Boot HAL Explorer
- Auto Configures HAL Explorer for Spring boot Projects
- spring-data-rest-hal-explorer
Step 1: Add HAL dependacny
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-hal-explorer</artifactId>
</dependency>
Step 2: Url run http://localhost:8080/
you will get http://localhost:8080/explorer/index.html#uri=/
HAL explorer come in
Step 3: By Searching actuator in edit headers will get links
Like :
"_links": { "all-users": { "href": "http://localhost:8080/users" }
Comments
Post a Comment