bitcoin core's JSONRPC goes over a TCP socket, to be fair
and to be extra fair, RESTful APIs didn't exist until after bitcoin core
they are better because you can use one tool to do everything: curl
i used a RESTful API for simple query endpoints that just do stuff, like exporting the relay event collection, pushing a jsonl file up to import the events, shutting down the relay, probably can think of other commands now i see this abomination here