hateoas Questions
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
10
Solved
In designing a RESTful Web Service using HATEOAS, what are the pros and cons of showing a link as a complete URL ("http://server:port/application/customers/1234") vs. just the path ("/application/c...
3
Solved
There's a similar question on SO, but it's not phrased well and it lacks details. So I'm trying to write a better question.
I'm interested in how to implement HATEOAS with a single page applica...
Narbada asked 13/3, 2015 at 19:24
2
Solved
I've seen two primary ways to add JSON REST Hateoas and I'm not sure which is more standard or the pros and cons of each approach.
The typical approach I see (Atom Links) is that the returned enti...
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
2
I'm trying to implement REST API that implements HATEOAS using Django REST Framework (DRF). I know that DRF itself doesn't support HATEOAS and I didn't find any examples of such implementation. The...
Pollywog asked 26/11, 2015 at 17:11
4
I searched many stack overflow answers,articles and could't get an concrete idea about this and that is why i'm asking this question,
References : 10 Best Practices for Better RESTful API
I am just...
5
Does anybody know of an implementation of a REST client that embraces the constraint of Hypermedia as the Engine of Application State (HATEOAS)?
The Sun Cloud API seems to be a good candidate, jud...
6
I have a resource that can be reach at the URI /resources/{resource_identifier} and it has a 'status' property that I want be accessible. I've thought of a few options for this, which would be the ...
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
2
Solved
I've come to the conclusion that building a truly RESTful API, one the uses HATEOAS is next to impossible.
Every content I've come across either fails to illustrate the true power of HATEOAS
or sim...
1
How can I use the HATEOAS principal in retrofit? Is there any way to use links in retrofit? Or should I parse it on my own?
links: [4]
0: {
rel: "self"
href: "https://localhost/api/product/9"
}-
1...
2
What would be the best way to represent a HATEOAS link for a POST/PUT/PATCH on a resource? These operations have payload but we won't have an option to represent the payload in HATEOAS link as they...
Coon asked 9/9, 2015 at 2:25
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
2
Overview:
I am going to add a new link based on Spring-Hateoas-Doc to the JSON response by using the following command:
linkTo(methodOn(ProductRepository.class).findOne(10L)).withRel("product");...
Cholecystotomy asked 24/7, 2016 at 4:44
4
Solved
I have an API design/versioning conundrum.
Let's say I have an endpoint /api/customers which GETs all customers (ignore pagination). There's a twist though: if a regular user accesses this endpoint...
Blane asked 5/11, 2019 at 14:10
3
I'm having a hard time trying to understand how the hyperlinked serializers work. If I use normal model serializers it all works fine (returning id's etc). But I'd much rather return url's, which i...
Mogerly asked 1/7, 2015 at 10:39
2
Solved
If a client requests a resource that doesn't exist from my REST application, like
http://localhost:8080/app/foo/1
and no Foo resource exists for that id, should I return a 404 error code? or sho...
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
2
I am looking at defining a REST API using HATEOAS. In particular, I find very interesting the concept of indicating for a given resource the actions that are available right now.
Some of the HATEO...
5
Solved
I'm just starting to write a client implementation for a WebAPI I'm currently building. The API already employs HATEOAS so I'm writing the client accordingly. I'm using RestSharp as the base for th...
Mensural asked 14/11, 2012 at 10:47
5
Solved
I'm getting involved in a project where some senior team members believe that a REST API has to be HATEOAS compliant and implement all Richardson's maturity levels (http://martinfowler.com/ar...
1
I will start to learn Vue.js and want to use it for consuming an HATEOAS compilant API, but found nothing that make it easier
Is there some Vue.js module for consuming HATEOAS compilant Rest APIS?
...
3
I have a JPA tree structure
@Entity
public class Document {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
private String text;
@ManyToOne
@JoinColumn(name = "parent")...
Transplant asked 11/4, 2016 at 7:54
2
Solved
I was talking to someone recently who said they are skipping the development of HATEOAS REST endpoints completely in favor of GraphQL. So I'm curious as to what the criteria set is for decidi...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.