News for hackers. Stuff that matters.
Re:Ask HN: Why isn't JSON-RPC more widely adopted? by talideon on Tuesday January 03, 2023 @12:11AM (#34227952)
"Modern" REST generally disposes of things like hypertext and representations as being too complex, instead leaning on things Swagger/OpenAPI to declare an IDL equivalent, so you're getting effectively an RPC system with some of the guarantees you'd get from REST.

Azure's APIs are more RESTful than most: they actually bother using resource URLs as identifiers.

I've never understood what people find so hard about HATEOAS. It's like people have never interacted with a HTML form or followed links to stuff, or have difficulty figuring out how webpages can consist of multiple linked resources.

Re:Ask HN: Why isn't JSON-RPC more widely adopted? by naasking on Tuesday January 03, 2023 @01:27AM (#34228456)
> I've never understood what people find so hard about HATEOAS. It's like people have never interacted with a HTML form or followed links to stuff, or have difficulty figuring out how webpages can consist of multiple linked resources.

Or that an object graph of a system is a web of linked resources, and that every program has an entry point object/interface from which you can navigate to any part of that object graph, just like in REST.

Re:Ask HN: Why isn't JSON-RPC more widely adopted? by spdionis on Tuesday January 03, 2023 @04:07AM (#34229449)
It's not hard, it's just wasteful and not very useful.
Re:Ask HN: Why isn't JSON-RPC more widely adopted? by daxfohl on Tuesday January 03, 2023 @02:21PM (#34236582)
Yes this is what I meant.

The way Azure does it is kind of nice (to me at least, as an ex member of ARM) because ARM can generically check access just by the URIs. The downside though is that the URI also includes the subscription and tenant id, so ARM has to deal with the URI being stale after stuff gets moved around. And then the advent of management groups and cross-tenant access made it so it's not quite so straightforward anymore. But it was still quite useful.

Re:Ask HN: Why isn't JSON-RPC more widely adopted? by still_grokking on Sunday January 08, 2023 @04:12PM (#34303179)
> "Modern" REST generally disposes of things like hypertext and representations as being too complex, instead leaning on things Swagger/OpenAPI to declare an IDL equivalent, so you're getting effectively an RPC system

Now the question is: Why do people insist to calling some (no standardized) ad hoc RPC protocol "REST(full)"?