Hacker News new | past | comments | ask | show | jobs | submit login

This argument is true for any data that was included in the response. If the client chooses to cache it, it needs to deal with it being stale.. which in this case could result in a 404. Obviously it would be a nice-to-have if the server had a redirect from the old to new.

> Even if you figured all of that out, links are not idiomatic if your users consume your api via an RPC or GraphQL.

Agreed, although you could model a link in the object-based structure representation to match the protocol, something like..

  # RPC
  {
    "rel": "owner",
    "procedure": "GetOwner",
    "args": {
      "id": 98765
    }
  }

  # GraphQL
  {
    "rel": "owner",
    "root": "owner",
    "args": {
      "id": 98765
    }
  }



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: