resto

A minimal OCaml library for type-safe HTTP/JSON RPCs
IN THIS PACKAGE
Module Resto . Description
type request = {
recurse : bool;
}
type 'schema service = {
description : string option;
path : path_item list;
meth : meth;
query : query_item list;
input : 'schema Lazy.t option;
output : 'schema Lazy.t;
error : 'schema Lazy.t;
}
and path_item =
| PStatic of string
| PDynamic of Arg.descr
| PDynamicTail of Arg.descr
and query_item = {
name : string;
description : string option;
kind : query_kind;
}
and query_kind =
| Single of Arg.descr
| Optional of Arg.descr
| Flag
| Multi of Arg.descr
type 'schema directory =
| Empty
| Static of 'schema static_directory
| Dynamic of string option
and 'schema static_directory = {
services : 'schema service MethMap.t;
subdirs : 'schema static_subdirectories option;
}
and 'schema static_subdirectories =
| Suffixes of 'schema directory StringMap.t
| Arg of Arg.descr * 'schema directory
val pp_print_directory : Format.formatter -> 'schema directory -> unit