hateoas Questions
2
Solved
Suppose you have a model Foo.
One business case is to simply create an instance of Foo, so there is a corresponding CreateFooCommand in my model, triggered by invoking a POST request to a given RES...
Featherweight asked 6/5, 2015 at 10:59
2
Solved
In an effort to grasp the underlying purpose of a RESTful API, I've begun delving into HATEOAS.
According to that wikipedia page,
A REST client needs no prior knowledge about how to interact w...
1
Solved
I still don't understand how the client knows what data to POST when creating a resource. Most tutorials/articles omit this and in their examples, a client always seems to know a priori what to pos...
2
Solved
I have started designing an API and have decided to have a go at making it conform to REST/HATEOAS. What should the entry point for the API be?
It seems like a common one is GET / but from what I'...
Endoskeleton asked 29/10, 2013 at 21:25
2
Solved
A real RESTful API leverages hypermedia so that clients rely only on dynamic hypermedia provided by server to navigate through the application (the concept known as HATEOAS)
This concept is easily...
Gally asked 8/3, 2015 at 12:39
4
Solved
When reading about HATEOAS/Hypermedia constraint, one thing that I often see is that a resource should have a self/href of some kind.
The argument for this is that the client should not need to kno...
Boaster asked 25/1, 2015 at 7:42
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 started with ActiveResource, but quickly hit the wall. Could not get ActiveResource to work when overriding to_json and to_xml on the underlying model. Plus, could not make resource representa...
Ramiroramjet asked 7/8, 2013 at 1:31
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
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
Solved
Trying to figure out a pattern for how to handle relationships when using a hypermedia based microservices based on Spring Data Rest or HATEOAS.
If you have service A (Instructor) and Service B (C...
Bobbyebobbysocks asked 6/1, 2015 at 1:50
4
To keep things simple and to avoid nameing collisions, I've been bundling links in my record resources like this...
{
id: 211,
first_name: 'John',
last_name: 'Lock',
_links: [
{ rel: 'self', h...
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
So let's say I have an existing application that has two endpoints /people and /pants. Calling GET /people returns:
[
{
"name":"john",
"age":37,
"pants":...
Dustproof asked 21/11, 2014 at 21:47
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
1
Solved
HATEOAS (Hypermedia as the Engine of Application State) and HAL (Hypertext Application Language) seem to be related but are not exactly the same. What is the relationship and difference between HAT...
5
I am in the early stages of planning a REST api, and I would like for it to adhere to the HATEOAS constraint of REST. But I would also like to provide a JSON format. So my question is if there are ...
Mahau asked 24/11, 2012 at 14:52
1
Solved
Let's say I have a collection of books which we'll call a library. GET domain.com/library should return a list of books in the library in HAL compliant JSON. How should I format the JSON? How could...
Hypaesthesia asked 11/8, 2014 at 19:35
3
One of the key points of building a RESTful API is HATEOAS. Now, Jersey offers a linking ability which is quite good (see this link). But I have seen the draft of the HAL Specification and it seems...
2
Solved
Imagine I have a fully implemented REST API that offers HATEOAS as well.
Let's assume I browse the root and besides the self link two other links (e.g. one for /users and one for /orders) are ret...
3
Solved
I want my API to be be RESTful
Let say I have started a long running Task with POST and now want to be informed about the progress?
What is the idiomatic REST way to do this?
Poll with GET ever...
3
How would you model a resource that can have two different representations. For example, one representation may be "thin" withe most of its related resources accessible by links. Another representa...
Elliott asked 13/5, 2014 at 2:28
1
Solved
I'm designing a REST-like API over Http.
I need the API Clients (apps, not browsers) to follow the links (HATEOAS), not to build them.
Also, I'll still use readable URLs for some reasons tha...
Thracophrygian asked 6/6, 2014 at 10:12
2
Solved
Ignoring 3xx responses for a moment, I wonder why the HTTP location header is only used in conjunction with POST requests/201 (Created) responses.
From the RFC 2616 spec:
For 201 (Created) resp...
© 2022 - 2024 — McMap. All rights reserved.