smizell / restfuljson

RESTful JSON Specification
14 stars 1 forks source link

Links object #13

Closed smizell closed 6 years ago

smizell commented 6 years ago

I'm seeing a pattern where people like to organize all of their links in a single object for the sake of simplicity. It's a little easier for people to look at when they are just looking for links rather than all of the properties ending with _url. It looks something like:

{
  "links": {
    "foo_url": "...",
    "bar_url": "..."
  }
}

The convention is still there to append _url, it's just organized in a single object.

Question: is this worth adding a MAY to the spec to accommodate this?

smizell commented 6 years ago

Closing. Discussed offline and we are not pursuing this now. Going to let this be handled by profiles.