Top "Spring-hateoas" questions

Spring HATEOAS provides some APIs to ease creating REST representations that follow the HATEOAS principle when working with Spring and especially Spring MVC.

Date format in the json output using spring boot

I am working on spring boot for creating a REST application. And I have a DTO as shown below: public …

java rest spring-boot spring-hateoas
When to use @RestController vs @RepositoryRestResource

I have been looking at various examples of how to use Spring with REST. Our end target is a Spring …

spring spring-mvc spring-data spring-data-rest spring-hateoas
Spring HATEOAS embedded resource support

I want to use the HAL format for my REST API to include embedded resources. I'm using Spring HATEOAS for …

java spring spring-hateoas
How to correctly use PagedResourcesAssembler from Spring Data?

I'm using Spring 4.0.0.RELEASE, Spring Data Commons 1.7.0.M1, Spring Hateoas 0.8.0.RELEASE My resource is a simple POJO: public class UserResource …

spring spring-mvc pagination spring-data spring-hateoas
Spring MVC 3: return a Spring-Data Page as JSON

I have a data access layer made with Spring-Data. I'm now creating a web application on top of it. This …

java json spring-mvc spring-data spring-hateoas
HATEOAS methods not found

My controller can't seem to find the HATEOAS methods like "linkTo". Am I missing something? pom.xml <?xml version="1.0" …

spring-boot spring-hateoas
Why HATEOAS starts creating issue for spring-boot version >= 2.2.x during startup with Swagger 2.x?

I moved my project from spring-boot 2.1.9 to 2.2.0. While starting the project, I am facing the below error messages. Caused by: …

java spring spring-boot swagger-2.0 spring-hateoas
How to remove the "_embedded" property in Spring HATEOAS

I'm using Spring Boot and HATEOAS to build a REST API and when my API returns a collection, it is …

spring rest spring-boot spring-hateoas
Spring HATEOAS versus Spring Data Rest

Question is, what's the difference between Spring HATEOAS versus Spring Data Rest ? I feel both can do the same, and …

java spring spring-data-rest hateoas spring-hateoas
Defining a resource assembler for a REST Spring HATEOAS controller

I'm trying to add HATEOAS links to a JSON resource served by a Spring REST controller. I see I should …

rest spring-hateoas