Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Resto.Description end
Service directory description
type 'schema service = 'schema Resto.Description.service = {
description : string option;
path : path_item list;
meth : Resto.meth;
query : query_item list;
input : 'schema Stdlib.Lazy.t option;
output : 'schema Stdlib.Lazy.t;
error : 'schema Stdlib.Lazy.t;
}
and path_item = Resto.Description.path_item =
| PStatic of string
| PDynamic of Resto.Arg.descr
| PDynamicTail of Resto.Arg.descr
and query_item = Resto.Description.query_item = {
name : string;
description : string option;
kind : query_kind;
}
and query_kind = Resto.Description.query_kind =
| Single of Resto.Arg.descr
| Optional of Resto.Arg.descr
| Flag
| Multi of Resto.Arg.descr
type 'schema directory = 'schema Resto.Description.directory =
| Empty
| Static of 'schema static_directory
| Dynamic of string option
and 'schema static_directory = 'schema Resto.Description.static_directory = {
services : 'schema service Resto.MethMap.t;
subdirs : 'schema static_subdirectories option;
}
and 'schema static_subdirectories =
'schema Resto.Description.static_subdirectories =
| Suffixes of 'schema directory Resto.StringMap.t
| Arg of Resto.Arg.descr * 'schema directory
val pp_print_directory : Stdlib.Format.formatter -> 'schema directory -> unit
val describe :
RPC_context.simple ->
?recurse:bool ->
string list ->
RPC_encoding.schema directory Tezos_error_monad.Error_monad.tzresult Lwt.t