spring-hateoas Questions

1

I have a REST service I want to document for my client developing team. So I added some Links from Spring-Hateoas to my resources API, and plugged into it swagger-springmvc @Api... annotati...
Pinko asked 24/6, 2014 at 14:50

1

Solved

I have the following controller methods: @RequestMapping(method = GET, produces = APPLICATION_JSON_VALUE) @Transactional(readOnly = true) public ResponseEntity list(Pageable pageable, PagedResourc...
Godwin asked 13/11, 2014 at 22:24

2

Solved

I tried: @BeforeClass public static void setUpClass() { CurieProvider curieProvider = new DefaultCurieProvider("a", new UriTemplate("a{yey}")); RelProvider relProvider = new DefaultRelProvider()...
Markley asked 7/11, 2014 at 8:1

2

Solved

Using spring data REST I have exposed a ProjectRepository that supports listing projects and performing CRUD operations on them. When I go to http://localhost:8080/projects/ I get the list of proje...
Derbyshire asked 17/6, 2014 at 22:10

2

Solved

Let's say I have two repositories: @RepositoryRestResource(collectionResourceRel = "person", path = "person") public interface PersonRepository extends PagingAndSortingRepository<Person, Long&g...
Lema asked 11/9, 2014 at 9:12

2

Spring HATEOAS provides the handy ControllerLinkBuilder to create links to controller methods, which will be added as hrefs in the JSON/XML returned to a client. For instance: resource.add(linkTo(...
Brittain asked 12/6, 2014 at 8:33

2

Solved

Spring Data REST (and Spring HATEOAS in particular) decouples RESTful IDs (viz., URIs) from entity IDs, and I'm having trouble linking them back up when saving new objects. See the interesting disc...
Nameplate asked 14/10, 2012 at 6:49

1

From various documents and tuts, I've earned and learned following points so far: Spring Data Rest (SDR) used for exposing our Spring Data Repository as REST service, so that one can use it for ...
Splanchnic asked 16/5, 2014 at 14:16

1

Solved

I'm trying to generate a link to search resources. So, I want to create a resource that provides a link to my search: POST /resourcesearch {param1: "value1",param2:"value2"} The response should ...
Johnny asked 24/3, 2014 at 16:16

1

Solved

I have a Spring Boot application that uses Spring HATEOAS, it has @EnableEntityLinks enabled. The application has a mvc-controller containing a field @Autowired EntityLinks entityLinks. I expected...
Belew asked 27/1, 2014 at 14:11

1

Solved

I'm trying to add HATEOAS links to a JSON resource served by a Spring REST controller. I see I should use a resource assembler as described at https://github.com/spring-projects/spring-hateoas Th...
Domitiladomonic asked 7/11, 2013 at 8:40

1

How to enable caching with Spring Data Rest? The reasoning behind is that repository listing and search methods won't change once the application is up. Also if the data behind the rest API is cha...
Advocaat asked 21/8, 2013 at 15:53

2

Solved

Question. How do I avoid n+1 queries with Spring Data REST? Background. When querying Spring Data REST for a list of resources, each of the resulting top-level resources has links to the associate...
Johppah asked 8/4, 2013 at 19:3

© 2022 - 2024 — McMap. All rights reserved.