spring-hateoas Questions

1

First at all I read the previous question: Exposing link on collection entity in spring data REST But the issue still persist without trick. Indeed if I want to expose a link for a collections re...
Shanty asked 16/4, 2015 at 7:42

1

Solved

I am using Spring-data-rest to provide read APIs over some JPA entities. For writes I need to issue Command objects rather than directly write to the DB, so I added a custom controller using @Repos...
Flameout asked 10/8, 2015 at 16:47

1

Solved

if you have a REST API that is hypermedia-driven (HATEOAS) you can easily change a client's behavior by including or omitting links in the response (_links). That enables a client to completely for...
Loughlin asked 23/7, 2015 at 17:12

1

How do I expose a new method in a MongoRepository extension class to the generated REST API and include the same ALPS/HATEOAS metadata, links etc. I have the usual Spring Data MongoDB repository: ...
Gerald asked 22/7, 2015 at 22:39

2

With @EnableHypermediaSupport(type = HypermediaType.HAL) Spring hateoas provides a simple and convenient way to enable HAL rendering. The annotations triggers some configuration magic which is exp...
Glue asked 10/1, 2014 at 9:48

2

Solved

Are there any plugins out there (similar to Swagger) which provide the ability to document HATEOAS APIs? The Swagger interface is quite good but it doesn't have level 3 REST support.
Thromboplastin asked 5/5, 2015 at 10:49

3

We are building an API and are using Spring RestControllers and Spring HATEOAS. When the war file is deployed to a container and a GET request is made to http://localhost:8080/placesapi-packaged-wa...
Mara asked 29/9, 2014 at 8:33

2

I'm building a Spring REST application using Spring HATEOAS (0.16.0.RELEASE) and I'd like the JSON links output to look like: _links: { self: { href: "https://<ip>/api/policies/321" } } ...
Dowd asked 7/9, 2014 at 11:25

2

Solved

So I have this HATEOAS entity. @Entity @Table(name="users") public class User extends ResourceSupport { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name="id") private lon...
Vickers asked 8/1, 2014 at 1:40

1

Solved

We've got a restful api running using spring which generates HATEOAS links. When I run the service locally, they are generated fine, but on our server, which hosts tomcat behind apache which proxie...
Indochina asked 22/4, 2015 at 8:7

1

Solved

Level 3 RESTful API's feature custom media-types like application/vnd.service.entity.v1+json, for example. In my case I am using HAL to provide links between related resources in my JSON. I'm not c...
Pet asked 15/12, 2014 at 23:6

1

One thing I do not understand when using ControllerLinkBuilder with methodOn feature is what are you suppose to do when your Controller has method signature like so: public HttpEntity<ResourceS...
Christlike asked 10/4, 2015 at 17:12

1

Solved

I'm trying to build a HAL-compliant REST API with Spring HATEOAS. After some fiddling I managed to get to work mostly like expected. The (sample) output looks like this right now: { "_links": { ...
Westerman asked 3/3, 2015 at 14:49

1

I have a number of micro-services built with Spring Boot, so for a bit of fun, I thought I'd have a go at adding HATEOAS to them to help set up cross-resource linking. It seems to work quite nicely...
Vallie asked 10/11, 2014 at 23:33

1

I've a question about the ALPS support in spring hateoas/data rest. It seems that the ALPS metadata are only exposed if you have a spring data rest repository. So my question is why is there only a...
Visibility asked 24/8, 2014 at 8:32

1

Solved

I have a Rest-Service using HAteoas, what worked before without pageing. Now I am producing pageable Json. I did it with out-of-the box features from Spring-Hateoas. But now I am stucking consuming...
Andaman asked 23/1, 2015 at 18:14

1

Solved

From what I can tell, there are provided means for converting a complex object to proper HAL format. This is of course leveraged in marshalling the objects in the framework itself. Resource and Lin...
Adne asked 27/1, 2015 at 22:26

1

Solved

Spring HATEOAS defines and registers a HttpMessageConverter with a Jackson module that contains serializers to transform its ResourceSupport and Resources types to HAL JSON representations. The mod...
Nip asked 28/1, 2015 at 0:23

2

I have a Spring HATEOAS Resource such that ModelResource extends Resource<Model>. In a @RestController I have a method to create new Models: @RequestMapping(value = "", method = POST) publi...
Slaughterhouse asked 25/1, 2015 at 18:25

1

I have two applications, one is called bar, what provides me resources in HAL format. The other is bcm to consume that service. Example of response bar looks like this: [ { "name":"Brenner/in",...
Unsecured asked 2/1, 2015 at 14:16

2

I'm trying to figure out how to build HAL links with templated: true. If I use BasicLinkBuilder.linkToCurrentMapping().slash("api/public/blogs/{blog}").withRel("blog"); The { and } chars are st...
Discernible asked 12/4, 2014 at 15:23

2

The newly added LinkCollectingAssociationHandler is throwing a MappingException due to an ambiguous association in my domain class. The links array looks like this: [<http://localhost:8080/roo...
Measured asked 17/3, 2014 at 18:49

1

Solved

I'm using Spring Data REST, which supports HATEOAS. I'm new to this paradigm. In GET responses from my RESTful web service I often receive results inside a node named _embedded. I'm wondering: w...
Pardon asked 10/12, 2014 at 16:8

1

Solved

Currently I am exposing a few Spring Data Repositories as RESTful services by annotating them with @RepositoryRestResource like this: @RepositoryRestResource(collectionResourceRel = "thing1", path...
Perfumery asked 9/12, 2014 at 20:8

3

Solved

I like to use spring-hateoas in my project and configured it with @EnableHypermediaSupport. The problem now is, that this magic config annotation registers its own MappingJackson2HttpMessageConvert...
Undesigning asked 11/7, 2014 at 9:30

© 2022 - 2024 — McMap. All rights reserved.