Exploring Api's with Spring Boot HAL Explorer

  1.  HAL stands for JSON Hypertext Application Language
    1. Its a simple formate that gives a consistent and easy way to hyperlink between resources in our API
  2.  HAL Explorer
    1. is an API Explorer for Restful Hypermedia API's Using HAL
    2. It helps you to enable your non-technical teams to play with API's
  3.  Spring Boot HAL Explorer
    1. Auto Configures HAL Explorer for Spring boot Projects
    2. 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 
Step 4: we can also test our Api which has links 

Like :
  "_links": {
    "all-users": {
      "href": "http://localhost:8080/users"
    }





Comments

Popular posts from this blog

Introduction of RESTful Web Service

Learn JPA and Hibernate

Implementing Dynamic Filtering for Rest API