665 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
0
answers
84
views
ASP.NET Core Web API: LinkCollectionWrapper<T>.Values always null in JSON despite being populated
I'm building a HATEOAS implementation in ASP.NET Core using a LinkCollectionWrapper<T> class that wraps a collection of entities and stores links.
My classes look like this:
public class ...
0
votes
1
answer
97
views
Should HATEOAS links preferably be placed on objects or be separate?
Should all HATEOAS links of the data-transfer object (DTO) be placed on the root level? Or should they be coupled with the individual keys as sub-objects? For example:
Option 1: separate links
{
&...
1
vote
1
answer
50
views
Post Payload issue when using NGRX-Hateoas (angular) and Spring Hateoas (HAL)
Currently We have a Spring Hateoas (HAL) implementation in the backend and manually handle the communication with our angular client which is working fine.
I started to look for libs (seems like no ...
0
votes
0
answers
60
views
Url.Action can't resolve GET url while other actions do work
I have a Web API controller that inherits from ControllerBase for invoices. It contains these endpoint definitions:
[HttpGet]
[Route("{id:guid}")]
public async Task<ActionResult<...
1
vote
0
answers
23
views
Testing RestController class with HATEOAS links
I am working through the Amazon Junior Dev Certificate on Coursera and finishing up the course on Spring Boot APIs. The current lab I am working on is requiring me to write unit tests for a ...
1
vote
1
answer
66
views
How to replace Link.REL_SELF when migrating from spring-hateoas 1.0 to 2.4?"
I have this Junit test with is using hateoas 1.0:
@Test
public void processUserExceptionThrown() {
when(userService.processAccount(request, account))
.thenThrow(new RuntimeException());
try {
...
1
vote
1
answer
576
views
How to implement HATEOAS in NestJS [closed]
Has anyone built a RESTful API with HATEOAS (Level 3 maturity) in NestJS? Are there any libraries or tools to help with this?
If implementing it manually, would you create a specific DTO (Data ...
0
votes
1
answer
146
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
61
views
How to easily expose endpoints in a format like Spring Data REST?
I use spring-data-rest in a project and it generates hundreds of endpoints, but whenever I create an endpoint manually I struggle to make all those links to all the entities, is there an easy way to ...
1
vote
0
answers
949
views
HTMX request content not being swapped despite receiving proper response
In my ASP.NET Core MVC project, I have a Bootstrap 5.3 modal whose contents are loaded by hx-get. The contents loaded in the modal are the ff.:
<form hx-put="/Edit/BasicInfo" hx-target=&...
2
votes
1
answer
536
views
HAL and HAL-FORMS
I have a problem understanding something. I would like to implement HATEOAS and move to level 3 of a REST API. For now, I am using Spring HATEOAS, which is not very complicated, and it generates ...
0
votes
1
answer
114
views
Disable links properties on input object Spring boot 3 webflux openapi and HATEOAS
I created a Spring boot 3 with webflux application, on top of that I added opanapi and contract first with swagger, I activated also HATEOAS in openapi because as model are generated on install with ...
0
votes
1
answer
38
views
How supported Headers and Media Types are "discovered" with HATEOAS?
Simply put, imagine a particular resource can be served using different Media Types (e.g. application/vnd.com.example.resource-v1+json and application/vnd.com.example.resource-v2+json).
My question is,...
0
votes
1
answer
48
views
How can I evaluate some URLs returned in HATEOAS format using Oracle PLSQL
For eg: I have response returned as follows from a GET service. I want to evaluate URLs:
URL2.com and URL7.com further in the same process and store the result. What would be a good approach to do ...
0
votes
1
answer
36
views
How do I use JavaScript Traverson HAL $all meta selector?
Per the JavaScript Traverson HAL documentation
For embedded arrays you can additionally use the meta selector $all,
which operates on embedded documents: If you pass ht:post[$all] to the
follow ...