Hacker News new | ask | show | jobs
by axlee 3157 days ago
Basically, instead of having a "User" response built like this:

  User {

    name: "Bob"

    id: 1

  }
You would have something like this:

  User {

    name: "Bob"

    href: "http://www.example.com/api/users/1"

  }
3 comments

This kind of reminds me of hateoas. [1]

[1] https://spring.io/understanding/HATEOAS

Isn’t that HATEOAS and not REST specifically? I don’t remember anything in Roy Fielding’s dissertation specifying any type of response body.
Thank you for your input. I will consider this feature going ahead.