Checking out NIP-86, a JSON RPC-like protocol.

All method names are lowercase, like "listeventsneedingmoderation"

Is it so difficult to name things like a normal person, e,g. ListEventsNeedingModeration or I'm missing something here?

Same question would go for Bitcoin Core, btw.

Reply to this note

Please Login to reply.

Discussion

dafuq, that's unreadable

💯

ahaha i never saw this but i knew something like it was being made

NWC at least uses snake_case

yeah, i'm not implementing this horseshit

RESTful or GTFO

relay.ip.address/path/to/command#parameter1=x¶meter2=x

like fucking normal fucking web shit

to be honest, i'm not a fan of jsonrpc, but if it's over sockets, ok, but this does not have to be over sockets

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