Questions tagged [spring-hateoas]

Spring HATEOAS provides some APIs to ease creating REST representations that follow the HATEOAS principle when working with Spring and especially Spring MVC. The core problem it tries to address is link creation and representation assembly.

HATEOAS (Hypertext As The Engine of Application State)

Resources

Clarification by Roy Fielding that HATEOAS is required for REST.

Building REST services with Spring explains what HATEOAS is, why it is required for REST and how to implement it using Spring MVC and Spring HATEOAS.

779 questions
0
votes
0 answers

PATCH and DELETE Failing with Spring Data JPA and OpenJPA

I am working on a project that does not allow for Hibernate due to the license. We are working with spring-boot-starter-parent 1.5.10.RELEASE, Spring Data JPA, and Spring Data REST with HATEOAS. Specifically, the…
0
votes
1 answer

REST wrapper for SOAP service with HATEOAS support

I did a REST wrapper for some SOAP services. Now I want to add HATEOAS support but, for the resources I use the auto created classes with the maven-jaxb2-plugin library. For example the auto generated class…
0
votes
2 answers

Spring Boot HATEOAS Output Fails

The output of my entities in a Sprint Boot REST HATEOAS service does not work. The service returns an empty string for each entity. There are no error messages. I have tried Spring Boot 1.5.4 and 2.0.0.RC1. Full source code is on GitHub:…
uı6ʎɹnɯ ꞁəıuɐp
  • 3,431
  • 3
  • 40
  • 49
0
votes
1 answer

Posting With Spring HATEOAS / Spring Data Rest

I have two domain objects in my project, Document and Project. Documents are associated with a single Project each. I'm using Spring-Data-Rest and it's Repository abstraction, so I have this: @Entity public class Project extends…
Rob Moffat
  • 465
  • 5
  • 11
0
votes
1 answer

Accessing a Spring Data REST API With Feign

I am trying to consume a Rest CRUD API with Feign Client. I've added the HATEOAS dependency to the Client application. org.springframework.boot
0
votes
1 answer

Resource-response from Hateoas Spring Boot shows Whitelabel Error Page

I am not a proffessional Spring Boot developer. I am writing a program with help from a tutorial and I am using Hateoas and Rest and when I am returning the response from a request I get a whitelabel error page. The resourceobject itself looks to…
bajen micke
  • 309
  • 1
  • 7
  • 18
0
votes
1 answer

Spring Boot getting empty _embedded array for related entity

Using Spring Boot I'm Having the following abbreviated structure of entities: @Entity @Table(name = "item") @Inheritance(strategy = InheritanceType.JOINED) public abstract class Item implements Serializable { @Id @GeneratedValue(strategy =…
obeliksz
  • 468
  • 9
  • 24
0
votes
1 answer

Map Mono>> to Mono>?

In my reactive Java 9 Spring Boot 2 with Spring HATEOAS application, I have a REST API returning Mono>>. In the application layer, I'd like the data to be Mono> but how can I concisely map Mono>>…
Jan Nielsen
  • 10,892
  • 14
  • 65
  • 119
0
votes
1 answer

Spring Data REST updates null properties on PATCH (when it shouldn't)

I am sending a PATCH request with null values in some properties of the entity and I see that the fields are updated in the database whereas according to spec they shouldn't (partial update). Trying to understand what's going on I see that the…
0
votes
1 answer

Spring-data-rest "Failed to convert" valid hateoas URI to Entity

We're using spring-data-rest 2.6.8 with spring-boot 1.5.8 and it's awesome! We found some strange behavior, nonetheless. When we do a GET to /rest/students/search/findByTeacher?teacher=/rest/teachers/1 everything runs smoothly. SDR converts the…
0
votes
1 answer

Trying to link to JPA Repository query methods with Spring HATEOS and get IllegalArgumentException: 'uriTemplate' must not be null

In my app I have a foreign key relation between Things and Stuff where a given Thing may contain hundreds of Stuffs and I'm using Spring Data JPA to expose the Thing and Stuff repository's. I want to display all the Stuff associated with the users…
Draconas
  • 185
  • 1
  • 8
0
votes
0 answers

Spring HATEOAS custom controller - enable converting URI to entity

This is an example of what I would like to achieve: @RepositoryRestController @RequestMapping("/users") public class UserController { @Autowired private UserRepository userRepository; @Autowired private TaskRepository…
Shadov
  • 5,421
  • 2
  • 19
  • 38
0
votes
1 answer

Id Encryption in spring-hateoas or Spring Rest Data

I have a question about a standard pattern or mechanism in spring-hateoas or Spring Rest Data about encrypting the IDs of the Resources/Entities. The reason I am asking, a requirement to our project is that we don't deliver the id's of our objects…
posthumecaver
  • 1,584
  • 4
  • 16
  • 29
0
votes
1 answer

Not able to integrate Spring HATEOAS in my existing Spring Boot REST API

Exception java.lang.ClassNotFoundException: javax.ws.rs.Path at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_131] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_131] at…
Nital
  • 5,784
  • 26
  • 103
  • 195
0
votes
1 answer

is PersonResource the same thing as Person in spring-hateoas

I have a Person.java class that contain id,firstName,lastName: According to the documentation, if I wish to have hateoas link, pagination and count, I should use a…
Dimitri Kopriwa
  • 13,139
  • 27
  • 98
  • 204