Module Mavryk_openapi.Api
val fail : ('a, unit, string, 'b) Stdlib.format4 -> 'c
type arg = {
id : string;
name : string;
descr : string option;
}
and 'a static = {
get_service : 'a option;
post_service : 'a option;
put_service : 'a option;
delete_service : 'a option;
patch_service : 'a option;
subdirs : 'a subdirs option;
}
and 'a subdirs =
| Suffixes of 'a suffix list
| Dynamic_dispatch of {
arg : arg;
tree : 'a tree;
}
and 'a suffix = {
name : string;
tree : 'a tree;
}
val opt_mandatory : string -> Json.t -> 'a option -> 'b
type path_item =
| PI_static of string
| PI_dynamic of arg
type 'a endpoint = {
path : path;
get : 'a option;
post : 'a option;
put : 'a option;
delete : 'a option;
patch : 'a option;
}
type schemas = {
json_schema : Json.t;
binary_schema : Json.t;
}
type query_parameter_kind =
| Optional of {
name : string;
}
| Multi of {
name : string;
}
| Single of {
name : string;
}
| Flag
type query_parameter = {
id : string option;
name : string;
description : string option;
kind : query_parameter_kind;
}
val map_tree : ('a -> 'b) -> 'c tree -> 'd tree