123 questions
0 votes
0 answers
21 views
Standard link relation for adding items to collection?
Relation Name: item Description: The target IRI points to a resource that is a member of the collection represented by the context IRI. Relation Name: collection ...
1 vote
2 answers
374 views
Implementing idempotency on the server using hypermedia in REST API
Suppose I'm creating a REST API and my POST method creates a new Order. And I'd like to use Hypermedia in my API, supplying a list of available actions to the client, and path to a POST method should ...
0 votes
1 answer
143 views
Spring hateoas hal forms
As we can se on json response, there's a property named 'files' where has no properties and no options, I don't know how to proceed in this case because it is another class nested in ...
1 vote
1 answer
1k views
How to retain query parameters in URL for HTMX hx-post request
I'm building a frontend using HTMX and I've encountered a problem with dynamically setting URLs for hx-post requests while retaining query parameters. Here's the scenario: I have a base URL such as ...
0 votes
1 answer
170 views
SpringBoot Hypermedia without HATEOAS
My client don’t want to use HATEOAS library for some reason. Or there any other maven dependency alternative to HATEOAS? I searched a lot but didn’t find any. Can someone help me with this please?
1 vote
1 answer
577 views
Why does HATEOAS not specify a schema for the request body
A question for this already exists, but is more tech focused and doesnt have answers: Representing a request body on HATEOAS link I like HATEOAS. I love using it in my frontend to check if I can ...
0 votes
1 answer
495 views
HATEOS with HAL and links to embedded ressources
I think the answer to this question is great because it explains a lot about HAL: How to handle nested resources with JSON HAL? However it does not fully answer the question (at least for me). ...
1 vote
1 answer
51 views
How to reference a resource in a update-request of a hypermedia api?
I did some research about how REST APIs work and how to link resources via hypermedia. Most of the examples about linking resources is related to the response of the server. But I wonder how to ...
0 votes
0 answers
102 views
URL Format for a PATCH that links two objects
I'm not sure what the most RESTful + HATEOS way is to achieve my goal. I want to use a PATCH operation to update the fields of two objects, creating a relationship between them, I'm not convinced ...
3 votes
1 answer
374 views
Does the API Platform framework fully support HATEOAS?
Currently I am working on a REST API and noticed, that for real REST it is essential to provide the possible HTTP operations of the resource within the HTTP response (e.g. in JSON-LD format). After ...
2 votes
1 answer
67 views
Hypertext Forms - ETag in the hypermedia control
Consider that I'm using HTML for my REST API media-type, it could be JSON it doesn't matter. HTML has a well understood <form> element with an action and a method. But if I'm posting to a ...
1 vote
2 answers
79 views
REST - Should an API client "advance" to the "next" resource like a browser?
In my years specifying and designing REST APIs, I'm increasingly finding that its very similar to designing a website where the user's journey and the actions and links are story-boarded and critical ...
2 votes
1 answer
323 views
REST - Typed resources vs HYDRA classes
From Fielding's article (https://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven): A REST API should never have “typed” resources that are significant to the client. Specification ...
8 votes
1 answer
3k views
How to handle nested resources with JSON HAL?
Imagine a REST endpoint (/employees) serving pages of employees in JSON HAL format. An employee lives in a country, which resides in a continent. For both countries and continents there are also ...
9 votes
2 answers
4k views
How to access 'rel' from Links in header? Hypermedia link relations
I am using json server and axios result from header link: "<http://localhost:3001/posts?_page=1>; rel="first", <http://localhost:3001/posts?_page=2>; rel="next", <http://localhost:...