본문 바로가기
Programming/SpringBoot

[Spring Boot] RESTful Service 강의 정리 (9) - HAL Browser를 이용한 HATEOAS 기능 구현

by prinha 2020. 8. 25.
반응형

 

 

[Spring Boot] RESTful Service 강의 정리 (8) - Monitoring APIs with Spring Boot Actuator

[Spring Boot] RESTful Service 강의 정리 (7) - Configuring Auto Generation of Swagger Documentation / 개발자 도움말 페 [Spring Boot] RESTful Service 강의 정리 (6) - Implementing HATEOAS / level3단계..

prinha.tistory.com


 

"HAL is a simple format that gives a consistent and easy way 
to hyperlink between resources in your API."

 

 

HAL(Hypertext Application Language) Browser

REST API 설계시 Response 메시지에 부가 정보들을 담아서 함께 제공하는 방식
즉, HAL을 API Response 메시지에 적용하면 그 메시지가 JSON 포맷이건 XML 포맷이건 
API를 쉽게 (검색)찾을 수 있는 메타 정보들을 포함시킬 수 있다는 것이다. 

 

 

1) pom.xml  add dependency

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-rest-hal-browser</artifactId>
</dependency>

 

2) http://localhost:8088/

  

  

 

 

 

 

반응형