Hacker News new | ask | show | jobs
by afiori 747 days ago
> In some ways yes, in others no. For example it can be near impossible to see if a deprecated field in a REST API is still being used and by which clients it is being used. With GraphQL this is fairly simple.

You should log deprecation warnings.

But also if the client is composing urls/params manually then you are not doing REST, you are doing RPC.

Rest APIs should mainly use HATEOAS hyperlinks to obtain a resource. that is clients almost always call links you have provided in other reponses (starting from a main entrypoint)

1 comments

REST is just a short name for RPC over JSON. Nobody does real Fielding's REST.
I disagree, REST is still meaningfull even in the usual loosened sense, it still means that you are working with some kind of actions on resources