Questions tagged [hateoas]
Hypermedia As The Engine Of Application State (HATEOAS) is a constraint of the REST application architecture.
42
questions
-3
votes
1
answer
102
views
HATEOAS API - best practice to create multiple entities in one request
I have a HATEOAS API (in ASP.NET) with an endpoint:
POST /api/messages - to create a new message and it returns the location of a new message
Now I have a requirement that in some cases based on ...
1
vote
3
answers
189
views
What are the benefits of HATEOAS in programs without user interaction?
Let's assume I have a batch job that needs to print orders. It will do so by getting orders from the order service and send them to the print service.
It uses HATEOAS to discover the link from the ...
2
votes
3
answers
439
views
How to implement HATEOAS with CQRS?
Let's say I have a CQRS system where my write model contains the business rules. My read model is simply a DTO; it is a collection of properties and "dumb".
Now if you were to create a REST ...
-1
votes
2
answers
121
views
Best practices for API design for an E-Commerce System
I have a few basic questions on how to implement an API for a basic e-commerce system.
The relevant entities are Customer, Puffle, and Review. Each Puffle can have zero or more Reviews. Each Review is ...
0
votes
1
answer
105
views
HATEOAS and storage of resource URL
I have my system which receives data from another service and then I show the data to my users. I'd like to store an ID or a link to the data. Then UI will go for the data using the ID/link.
If we ...
1
vote
2
answers
199
views
How does a RESTful client know the proper way of manipulating the state of a resource?
I've read that a key portion of a RESTful interface is that the client doesn't have to know what options are available before they hit the page/access the resource. The client starts with the initial ...
0
votes
2
answers
66
views
Data entry (forms, validation) in RESTful Web app
I'm designing a web-app that will use a REST API. What I've never understood is what is REST's equivalent of HTML forms? HTML5 forms have a reasonably rich set of server-provided, declarative controls,...
1
vote
2
answers
452
views
Eliminating duplication of validation metadata in client and server
I tried to find some insight in how to handle the duplication of client-side and server-side validation in my app. If, for example, I have an User Entity like this on my back end:
type User struct {
...
2
votes
2
answers
348
views
How to use HATEAOS links to single entities in a frontend?
Context
Let's say I have the API endpoints /api, /api/accounts and /api/accounts/{id}.
As far as I understand, the idea is that a call to /api gives me a list of "base" API calls, among ...
2
votes
3
answers
325
views
Good ways to prevent client side logic duplication without HATEOAS?
I know HATEOAS can be a bit of a heated topic. Some people like it, some people don't. That is not what I want to discuss.
What I want to discuss is what technology other than HATEOAS (or some form of ...
1
vote
1
answer
484
views
API pagination with external or centralised authorization
I am building a REST API which would power a front end as well as other 3rd party apps and hence I want it to be as "standard" as possible. Right now, I am trying to stick to HATEOAS. The ...
0
votes
3
answers
644
views
Direct link with HATEOAS?
I'm considering HATEOAS for one of my application but for that, I need to be sure that it fits my needs. One of them is the ability to support direct links such as "https://www.webapp.com/user/1&...
1
vote
1
answer
501
views
SPA Routing with a RESTful API using HATEOAS
When using routing in a SPA web app (angular, react, etc), the user doesn't have to start at the entry point of the application. They can use a URL in the browser to drill down into any part of the ...
0
votes
1
answer
576
views
HATEOAS with Child Resources
Suppose Person has a Car. Car is a separate resource with its own URI. For the sake of this example, assume a person can only have one car.
We want to include the Person's Car in the response when ...
-1
votes
3
answers
600
views
RESTful API design using HATEOAS - Decision on Structure
We're designing and developing an enterprise application using Spring Boot for REST APIs and Angular 8 as the web client. It's been an year since we started.
When I started, I read multiple articles ...