spring-hateoas Questions
3
I'm creating a Spring REST app using Spring Boot 2, Spring Data REST, Spring HATEOAS.
I created this controller:
@Api(tags = "City Entity")
@RepositoryRestController
@RequestMapping(path = "/api/...
Infrastructure asked 8/2, 2019 at 10:17
2
I want to customize the response of a hypermedia Rest JPA entity and want to remove all the _links attributes and self link attributes.
My client application is not that big and it knows what exac...
Mooch asked 11/9, 2016 at 5:3
12
Solved
My controller can't seem to find the HATEOAS methods like linkTo. Am I missing something?
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://mav...
Konstanz asked 17/8, 2014 at 19:15
3
I'm writing unit tests for Spring HATEOAS backend using MockMvc and JsonPath.
To test the links contained in a response I'm doing something like:
@Test
public void testListEmpty() throws Exception...
Taxiway asked 29/8, 2014 at 14:46
2
I've been searching for a few days on how to implement a Spring REST API containing HATEOAS links + Pagination with Spring boot and JPA (No spring data rest) like this random example:
{
"_lin...
Blais asked 18/9, 2020 at 22:32
7
I'm using Spring Boot and HATEOAS to build a REST API and when my API returns a collection, it is wrapped inside a "_embedded" property, like so:
{
"_links":{
"self":{
"href":"http://localhost...
Mailemailed asked 2/3, 2015 at 11:4
2
Can we use spring HATEOAS on top of RouterFunction ? I imagine that we can specify the resource but what will be the equivalent of the linkto(Controller.class) ? or is there any equivalent to speci...
Moravian asked 6/9, 2017 at 9:23
2
Solved
What it says in the title.
I want to serve a root resource that consists only of links to the "lower" resources. It seems that Resource as well as HttpEntity want an object with some content as th...
Munshi asked 3/3, 2015 at 16:57
5
Solved
I am following Spring RESTfull API tutorial. The tutorial asks to use Spring HATEOAS at some point. However, my IDE, STS, cannot find the references of the methods, linkTo and methodOn.
@GetMappin...
Impersonal asked 23/7, 2019 at 13:58
5
Solved
I have configured a RepositoryRestResource on a PageAndSortingRepository that accesses an Entity that includes a composite Id:
@Entity
@IdClass(CustomerId.class)
public class Customer {
@Id BigIn...
Illconditioned asked 22/5, 2014 at 8:29
7
As the title says, I have a resource object Product extending ResourceSupport. However, the responses I receive have the property "_links" instead of "links" and have a different structure.
{
"pr...
Lottielotto asked 21/8, 2014 at 16:13
7
Solved
I am using Spring Boot 2.2.0.M1 with HATEOAS and Gradle.
implementation 'org.springframework.boot:spring-boot-starter-hateoas'
Right now, Resource is not found by the IDE (IntelliJ IDEA 2018.3) ...
Roselinerosella asked 20/4, 2019 at 4:7
3
I am using Spring Data JPA to manage a JPA entity and Spring Data Rest exports the repository into a REST API.
I am also building a custom controller where I want to take the URI of the entity (HA...
Eb asked 23/3, 2018 at 21:33
5
Solved
The problem is that I am getting an exception using @RepositoryRestResource for my UserRepository that extends JpaRepository.
The reason for that is that findById is only accepting Long or Int typ...
Chromatogram asked 10/8, 2019 at 1:2
3
Solved
Can anyone explain the difference between Swagger & HATEOAS? I have searched this question many times but nobody has provided a proper, detailed answer differentiating these two aspects.
Bigamist asked 23/2, 2019 at 8:28
5
I am using spring-data-rest to expose REST API. One of my search method returns list of entities. The repository and rest response as follows
List<Order> findByKeywordContaining(String keywo...
Petulant asked 13/10, 2016 at 12:26
1
Solved
I recently upgraded spring boot from 1.x to 2.y and was facing this issue where hateoas links were generated with http scheme instead of https.
Later I discovered that with spring boot 2.2+, it is ...
Hone asked 9/7, 2021 at 14:15
1
I'm trying to use HATEOAS with Spring HATEOAS and need to expose enums as REST API with Spring HATEOAS.
I tried three ways as follows:
@RestController
@RequestMapping(path = "/fruits")
public cla...
Curarize asked 28/12, 2015 at 8:8
5
pom.xml
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
&...
Vladi asked 16/3, 2020 at 16:55
2
Solved
In our Spring-Data-Rest Project we have a custom (fuzzy) search on a /buergers/search/findBuergerFuzzy?searchString="..." endpoint.
Is it possible to add a link for it on the /buergers/search end...
Mirza asked 25/9, 2015 at 9:17
2
Solved
I'm mapping all my api endpoints under the base url /api/. Now I want to expose all the available endpoints by using spring-data-rest via HATEOAS so that a client application can process these info...
Reed asked 3/2, 2017 at 15:9
16
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: org.springframework.beans.factory.NoUniqueBeanDefinitionException: N...
Spooky asked 17/10, 2019 at 11:45
5
Solved
I am currently building an application with a REST interface, using Spring Boot, Hibernate and Spring-HATEOAS. My data model is defined as beans with @Entity annotation and I am using Spring's feat...
Interpretative asked 4/11, 2014 at 15:49
2
Solved
I'm attempting to add some additional business logic to the auto-generated endpoints from the RepositoryRestResource. Please see the code below:
Resource:
@RepositoryRestResource(collectionResour...
Nikolaus asked 6/11, 2015 at 17:3
1
I have a question concerning the representation model processors of Spring HATEOAS. We are experimenting to process models before serializing them to the client. Our use case is to enrich the image...
Centro asked 6/7, 2020 at 10:31
1 Next >
© 2022 - 2024 — McMap. All rights reserved.