JSON-RPC Swagger Combination

I am considering introducing JSON-RPC for my web service with this library . I would also like to implement Swagger for my service.

However, I'm not sure if these two are a good combination. In JSON-RPC, all methods are on the same resource, while this makes no sense in Swagger.

I am interested in the following:

  • Is it possible to combine these technologies in full force?
  • Is JSON-RPC a good technology to use? Or is it better to implement it manually?

Your thoughts are appreciated.

A related, obscure question: Swagger and json-rpc

+4
source share
2

Swagger JSON-RPC, .

, , Swagger API. Swagger , HTTP-.

, JSON-RPC, - , , . , Swagger 100% REST- API, , - .

+4

API...

JSON-RPC . , REST HTTP. , . JSON-RPC API (socket.io, raw binary, ZeroMQ, fax- > OCR, sms, anything) .

-, JSON-RPC - REST, REST - SOAP

+1

Source: https://habr.com/ru/post/1583945/


All Articles