Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3663

How to implement HATEOAS in NestJS

$
0
0

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 Transfer Object) for each response? Or would you use a more general structure like this:

{"data": T,"links": Link[]}

How would you decide which links to include for each resource? Where would this configuration be set?


Viewing all articles
Browse latest Browse all 3663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>