spring-hateoas Questions

3

Solved

I want to create a REST link for an Employee entity that will basically be a findByAllFields query. Of course this should be combined with Page and Sort. In order to do that I have implemented the ...
Varico asked 22/9, 2014 at 18:24

4

Solved

I have the following controller method: @RequestMapping(produces = MediaType.APPLICATION_JSON_VALUE, value = "session/{id}/exercises") public ResponseEntity<Resources<Exercise>> exerci...
Interfile asked 17/5, 2015 at 12:18

4

Solved

I have Spring Data Rest with Hateoas as my backed. It is behind a proxy. Backend url: backend.com Proxy url: proxy.com When I query proxy url, e.g. http://proxy.com/items/1, I get a response wit...
Archibald asked 3/5, 2015 at 22:37

6

I am wondering if it is possible to add HTTP method to the links created with Spring HATEOAS. I would like the link to look something like: { "href":http://localhost:8080/admin/users", "rel": "...
Number asked 26/8, 2014 at 19:30

1

Solved

I'm reading Spring in Action 5th. and to add hateoas hyperlink. this class is extending org.springframework.hateoas.ResourceSupport however I cannot find it. i'm using Spring Boot version 2.2.5.REL...
Proceleusmatic asked 19/3, 2020 at 17:38

2

Solved

I've been using Spring HATEOAS following the guidelines: https://spring.io/guides/gs/rest-hateoas/#initial package hello; import static org.springframework.hateoas.mvc.ControllerLinkBuilder.*; ...
Zolly asked 12/8, 2017 at 13:20

1

I'm trying to apply HATEOAS to the existing application and I'm having trouble with modeling a form inputs that would be driven by the API response. The app is allowing to search & book connec...
Westphal asked 23/3, 2019 at 16:31

5

I'm following a tutorial on Spring REST and am trying to add HATEOAS links to my Controller results. I have a simple User class and a CRUD controller for it. class User { private int id; privat...
Cowl asked 2/4, 2018 at 16:57

3

I've got something like this in my controller: @RequestMapping @ResponseBody public HttpEntity<PagedResources<PromotionResource>> promotions( @PageableDefault(size = RestAPIConfig.DEF...
Hundred asked 5/5, 2014 at 19:45

1

Solved

I am bulding a REST API in Spring. So until now I have only reading services (GET). For this I used Spring HATEOAS to add links that referring to child elements. Now I want to add some writing RE...
Dora asked 12/6, 2019 at 8:36

2

Solved

I'm using spring-data-common's PagedResourcesAssembler in my REST controller, and I was happy to see it even generates next/previous links in the response. However, in those cases where I have addi...
Gelderland asked 3/9, 2014 at 19:2

1

Solved

In my current Spring HATEOAS 0.25.1.RELEASE project I make heavy use of ResourceProcessor interfaces: @Bean public ResourceProcessor<Resource<Person>> personProcessor() { return n...
Hellas asked 13/5, 2019 at 19:38

7

I have a project based on spring-data-rest and also it has some custom endpoints. For sending POST data I'm using json like { "action": "REMOVE", "customer": "http://localhost:8080/api/rest/cu...
Incendiarism asked 12/5, 2016 at 12:7

8

I want to use the HAL format for my REST API to include embedded resources. I'm using Spring HATEOAS for my APIs and Spring HATEOAS seems to support embedded resources; however, there's no document...
Featherweight asked 15/9, 2014 at 23:57

6

In my RESTful API, all resources are extending the Spring's ResourceSupport base, in order to ensure hateoas principals by design. For example: public class PoolResource extends ResourceSupport { ...
Downcast asked 21/1, 2015 at 13:26

3

Solved

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 extends ResourceSupport { ... } My resource as...
Klansman asked 25/1, 2014 at 3:54

2

I have the following domain class implemented for a Spring Data Rest project. @Entity @Data public class Address { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") ...
Rombert asked 22/5, 2017 at 15:46

1

Solved

This question used to be titled "Spring 5 Reactive WebClient consuming HAL+JSON HATEOAS PagedResources", but the new title is more appropriate. The following code works perfectly with RestTemplate...

3

Solved

I followed the spring.io Pivotal tutorials to get a REST API with a MySQL DB off the ground and things are progressing nicely. However I found a behavior that I haven't been able to configure or wo...
Braze asked 18/10, 2018 at 22:22

2

In my project I have two domain models. A parent and a child entity. The parent references a list of child entitires. (e.g. Post and Comments) Both entities have their spring data JPA CrudRepositor...
Demagnetize asked 17/11, 2017 at 18:43

0

Overview How can I have a PersistentEntityResourceAssembler properly injected into my custom REST controller's request methods during a @WebMvcTest unit test? First SO question. Apologies in adva...
Barsky asked 13/10, 2018 at 6:3

2

I have pretty the same question as it has been asked here (Exposing link on collection entity in spring data REST). But nothing from that topic helps me to add custom link to collection call. @Com...
Eonism asked 20/10, 2016 at 13:51

3

Solved

I have a data access layer made with Spring-Data. I'm now creating a web application on top of it. This one controller method should return a Spring-Data Page formatted as JSON. Such a Page is a L...
Chelton asked 28/5, 2013 at 11:0

2

Solved

first question here so be gentle :) I've got a JPA project which I want to expose as REST. I've done this so far: My entity: @Entity public class SignUpSheet { @Id @GeneratedValue private Lon...

1

In Spring Data REST I'm creating custom links using a ResourceProcessor: @Component public class ServiceInstanceProcessor implements ResourceProcessor<Resource<ServiceInstance>> { @...
Malignant asked 13/10, 2015 at 0:48

© 2022 - 2024 — McMap. All rights reserved.