2,226 questions
0
votes
1
answer
116
views
Sort query parameter has no effect when JSON property naming strategy is UpperCamelCase
I use Spring Data REST to expose CRUD endpoints for a JpaRepository. The endpoint on the collection resource provides page, size and sort query parameters. The issue is that sorting doesn't work for ...
0
votes
1
answer
37
views
ApplicationModuleTest - BeanInstantiationException: No repository found for type
I run a Spring Modulith ApplicationModuleTest in an application that has a Spring Data Rest module with CRUD logic, alongside other Spring Data JDBC modules with "real" domain logic.
The ...
0
votes
0
answers
27
views
Missing OPTIONS endpoint for Spring Data REST RepositoryPropertyReferenceController?
I'm not seeing an OPTIONS endpoint for Spring Data REST RepositoryPropertyReferenceController. This controller handles calls to relationships for any given entity. If entity relationship calls are ...
0
votes
1
answer
139
views
Does Springdoc OpenAPI v2 support doc generation for QueryDSL predicate paths as query parameters?
Spring Data REST allows for simple boilerplate creation of CRUD REST controllers. When integrated with QueryDSL, HTTP query parameters can be bound to QueryDSL paths to filter the collection resource. ...
0
votes
1
answer
51
views
How to use spring web client to load class fields from HAL format response
I want to use spring web client of any other client to read HAL format responses and set class fields properly.please find my scenario below
API to get person information : http://localhost:8080/...
0
votes
0
answers
16
views
Is it possible to replace spring-hateoas with spring-hateoas-jsonapi in spring-data-rest?
Spring Data Rest works with Spring Hateoas. Id like to replace it with spring-hateoas-jsonapi. Is it possible?
0
votes
1
answer
56
views
How to convert URI to object in custom spring-data-rest controller?
I use spring-data-rest to publish this entity, among others
@Entity
public class Activity {
@Id
private Long id;
@ManyToOne
private Customer customer;
}
Referenced entities such as ...
1
vote
1
answer
78
views
Should we associate matrix variables to path parameters in Spring Boot?
When I associate matrix variables to path parameters, I am able to access the values of the matrix variables but I can't when I associate it with the fixed path segments. Why is this so?
@...
0
votes
0
answers
423
views
SpringDoc and Spring Data Rest configuration
I'm using Spring boot 3.4.1 with Spring Data Rest. Now I implemented SpringDoc
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0'
springdoc.api-docs.enabled=true
springdoc.api-...
1
vote
1
answer
1k
views
Spring Boot 3.4.1: Why Is spring.data.rest.base-path Causing 404 Errors? Possible Conflict with DevTools?
I recently upgraded my Spring Boot application from version 3.4.0 to 3.4.1 and encountered an issue with Spring Data REST.
In version 3.4.0 (and all previous 3.x versions), the following configuration ...
0
votes
1
answer
177
views
How to configure PersistentEntityJackson2Module in Spring Boot 3.4.0?
We are migrating the Spring Boot application (mixture of Spring Data Rest with plain vanilla mvc) from version 2.5.12 to 3.4.0. The application heavily depends on the ObjectMapper configured with ...
0
votes
1
answer
40
views
storerestresource annotation doesn't create REST Endpoints
I'm trying to use Spring Content REST library from paulcwarren, the issue I have faced is that when I create the storage interface it doesn't create the rest api endpoints, because when I try to call ...
0
votes
1
answer
60
views
Unidirectional foreign key columns are not updated on save
I am having issues updating the unidirectional foreign key fields for existing entities. The client sends a PUT request with the full entity data (parent and child entities included), but only the ...
0
votes
2
answers
483
views
PATCH Spring Data Rest not working as expected
I can't share specific code snippets from my current application, but the structure mainly consists of Entities and Repository classes.
We're encountering an issue with the PATCH method. The expected ...
-1
votes
1
answer
66
views
Override response code in spring data rest generated api
We use spring data rest annotating repositories with @RepositoryRestResource which provides CRUD APIs by default. In spring boot 2.7.3 which we currently use, delete API returns
204 no content
But ...