spring-hateoas Questions
1
I'm trying to understand how to create and modify links in Spring HATEOAS.
For example, say I have two collections, one at api/users and another at api/event. I would like to associate a user api/...
Repossess asked 9/10, 2014 at 22:29
2
Solved
I am working with Spring Hateoas for HAL standards in HTTP response. I have a HTTP DELETE method in my controller which returns nothing (void). And in the response for same entity I want to provide...
Onions asked 7/12, 2016 at 12:17
2
I wish to know how to delete a many-to-many association via a REST call. I am able to create records, and associated them, but do not understand how to delete.
I have a Spring Boot project where i...
Ulane asked 25/2, 2015 at 4:58
0
I am using spring-data-rest in my application. I configured repositoryRest using configureRepositoryRestConfiguration
I added the following two lines in this configuration
config.exposeIdsFor(Per...
Cowardice asked 17/11, 2016 at 7:16
2
Solved
I have a simple UserRepository which exposed using Spring Data REST.
Here is the User entity class:
@Document(collection = User.COLLECTION_NAME)
@Setter
@Getter
public class User extends Entity {
...
Fahy asked 27/10, 2016 at 16:18
0
Spring HATEOAS works great at linking to another method in the same application. For example:
Greeting greeting = new Greeting(String.format(TEMPLATE, name));
greeting.add(linkTo(methodOn(Greeting...
Venterea asked 25/10, 2016 at 23:5
2
Solved
I really like all the boilerplate code Spring Data Rest writes for you, but I'd rather have just a 'regular?' REST server without all the HATEOAS stuff. The main reason is that I use Dojo Toolkit o...
Dextrocular asked 26/6, 2014 at 2:35
2
I'm using Spring Boot 1.3.1.RELEASE and trying to create a custom Repository + Controller. I configured the basePath to be /api and cannot figure out how to put the custom Controller's URI to autom...
Gill asked 13/1, 2016 at 16:47
1
Solved
We are currently implementing an API library in our newest project.
We are trying to use Spring HATEOAS with HAL as the apropriate library to generate json hal responsed.
Using Spring boot 1.2.5.R...
Marbling asked 4/9, 2015 at 14:40
5
I have two spring boot applications where one of them is acting as an API Gateway (as discussed here Spring Example). The other which is wired into the first one is exposing a profile service using...
Alible asked 1/6, 2015 at 22:16
2
Solved
I'm building a REST API. I have a domain model composed of beans than can't extend ResourceSupport. Which is the best way to expose them as resources using Spring-HATEOAS?
In case that's not possi...
Partlow asked 3/12, 2013 at 10:15
1
Solved
The setup: So I have a RESTfull API written in java, using spring-boot and spring-hates for adding links to the resource (Hypermedia-Driven RESTful Web Service). Everything I have is standard and n...
Pieter asked 30/3, 2016 at 8:35
3
Solved
Question is, what's the difference between Spring HATEOAS versus Spring Data Rest ?
I feel both can do the same, and Spring Data Rest (as part of Spring Data) seems a bit more alive.
https://gith...
Merla asked 22/10, 2013 at 9:34
4
I'm writing a Spring (4.1.7) web application that exposes a RESTful service and wish to use DTO "resource" objects for communication between Controller and client browser rather than expose my pers...
Messroom asked 27/7, 2015 at 2:30
1
Solved
I am using Spring HATEOAS in my web application. My application runs behind a Nginx webserver. I am sending following url with HTTPS header
GET https://national.usa.com/testapp-rest/api/user/654rt...
Neighbor asked 26/11, 2015 at 15:53
2
I'm using 0.8.0.RELEASE version of spring-hateos, which has spring libraries (spring-core and spring-webmvc) in version 3.2.3.RELEASE as a compile time dependencies.
However, in runtime I would li...
Petty asked 20/11, 2015 at 14:24
3
We're building a RESTful web service similiar to the spring.io guide "Accessing JPA Data with REST". To reproduce the sample outputs below, it suffices to add a ManyToOne-Relation to Person as foll...
Blevins asked 4/7, 2014 at 8:51
2
For the rest interface the Spring MVC + RxJava + DeferredResult returned from controllers is used.
I am thinking about adding Hateoas support to the endpoints. The natural choice would be the Spr...
Langtry asked 16/2, 2015 at 11:27
3
I have a Spring Data Rest Repository controller that utilizes JPA for the query implementation, and I need to add some custom query methods that cannot be done using the standard queryByExample met...
Eckel asked 10/4, 2015 at 21:28
1
We are using HATEOAS to great effect however we have been looking at performance and getting very poor results from the building of the links, namely code which looks like this
resource.add(linkT...
Dost asked 21/11, 2014 at 10:5
2
Solved
Lets say I have the following structure:
@Entity
class Person extends AbstractPersistable<Long> {
String name
String surname
}
@Entity
class Task extends AbstractPersistable<Long> ...
Rella asked 15/10, 2015 at 18:52
1
I am using spring mvc, hateoas. I have a controller action that looks like
@RequestMapping(value = "/images/{userId}/{publicUrl}/{fileName:.+}", method = RequestMethod.GET)
public void image(@Path...
Hanafee asked 1/6, 2015 at 13:10
1
Solved
What is the best practice for supporting HTTP PATCH in custom Spring MVC controllers? Particularly when using HATEOAS/HAL? Is there an easier way to merge objects without having to check for the pr...
Wellfound asked 22/10, 2015 at 19:0
1
I have an interesting problem. My data-model is the following:
Type A:
@Entity
@JsonIgnoreProperties(ignoreUnknown = true)
public class A {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
...
Granulite asked 13/10, 2015 at 16:9
1
Solved
I've a database and some classes. These classes are linked with OneToMany, and so on.
If I print the object itself with spring it contains everything. But if I print it with the Resource feature, ...
Songful asked 15/10, 2015 at 18:29
© 2022 - 2024 — McMap. All rights reserved.