I am considering to implement JSON-RPC for my web service with this library. I would also like to implement Swagger for my service.
However, I am not sure, if these
Coming from the Swagger team, and having little knowledge of JSON-RPC I can provide a partial answer.
Based on what you described in the question, it would definitely not be possible to use Swagger to document such an API. Swagger can only document unique operations where a unique operation is defined as a combination of path and a HTTP verb.
Unfortunately, I cannot comment about the power of JSON-RPC, not because of bias but because I'm not aware enough of its mechanics. To add to that, Swagger does not aim to cover 100% of use cases when describing REST-like APIs, and that does not mean that anything out of its scope is not good.