Module Rest.Make

Creates a REST endpoint using the http post method with operation specified by provided module Operation. Also produces a command line interface hook.

Parameters

Signature

val post : (module Cfg.S) -> Nonce.reader -> Operation.request -> [ `Ok of Operation.response | Error.post ] Async.Deferred.t
val command : string * Core.Command.t