View Source PhxJsonRpc

Simple implementation of JSON-RPC server, working with phoenix.

Allows you to define any number of rpc endpoints, with simple access via http protocol.

Endpoint can handle batches in asyncronous order.

installation

Installation

The package can be installed by adding phx_json_rpc to your list of dependencies in mix.exs:

def deps do
  [
    {:phx_json_rpc, "~> 0.1.0"}
  ]
end

This package depends on ex_json_schema for validation purposes.

quick-start

Quick start

Please see this guide for usage with phoenix.

documentation

Documentation

The docs can be found at https://hexdocs.pm/phx_json_rpc.

The package creation was inspired by some other repos:

license

License

MIT. Please see the license file for more information.