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 teacher URI into a teacher Entity and we get a list of students.
When we provide a different URI (that resolves to the same object), the system can't do the conversion: /rest/students/search/findByTeacher?teacher=/rest/class/2/teacher
Currently we are doing this in two steps. First we GET the /rest/class/2/teacher
and then we use the _links.self.href
(/rest/teachers/1) to do our search.
Is there a way to configure SDR to avoid this 2-step process?