Skip to main content

All Questions

Tagged with
-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 ...
MarisKs's user avatar
  • 97
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 ...
wertzui's user avatar
  • 119
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 ...
S. ten Brinke's user avatar
-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 ...
Richard Robinson's user avatar
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 ...
Zymus's user avatar
  • 2,503
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,...
David Kerr's user avatar
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 { ...
Daniel Lopes's user avatar
2 votes
2 answers
347 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 ...
R. Schmitz's user avatar
  • 2,608
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 ...
S. ten Brinke's user avatar
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 ...
Sayak Mukhopadhyay's user avatar
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 ...
wired_in's user avatar
  • 332
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 ...
wired_in's user avatar
  • 332
-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 ...
Shubham's user avatar
  • 55
1 vote
1 answer
975 views

How should REST resources relate to the server database schema?

I am trying to understand whether resources in a RESTFUL API should directly represent the underlying database or not. In particular, a problem that I have is that I usually use highly normalized ...
Neil's user avatar
  • 229
3 votes
4 answers
4k views

What's the ideal way to send a success message in the response of a HATEOAS Rest Api?

I am using HATEOAS architecture in my rest application and want to send internationalized success message that will be directly consumed by the client. I know we can just add a key in the response but ...
Gajender Parmar's user avatar

15 30 50 per page