Module EzAPI.Doc

type t = {
doc_id : int;
doc_name : string option;
doc_descr : string option;
doc_path : string;
doc_args : Arg.descr list;
doc_params : Param.t list;
mutable doc_registered : bool;
doc_section : section;
doc_input : Json_schema.schema Stdlib.Lazy.t option;
doc_output : Json_schema.schema Stdlib.Lazy.t option;
doc_mime : Mime.t list;
doc_errors : (int * Json_schema.schema Stdlib.Lazy.t) list;
doc_meth : Meth.t;
doc_security : Security.scheme list;
doc_input_example : Json_repr.any option;
doc_output_example : Json_repr.any option;
}
and section = {
section_name : string;
mutable section_docs : t list;
}
val services : t list Stdlib.ref
val nservices : int Stdlib.ref
val default_section : section
val sections : section list Stdlib.ref
val definitions_path : string
val update_service_list : t list -> t -> t list
val make : i. ?⁠name:string -> ?⁠descr:string -> ?⁠register:bool -> ?⁠section:section -> ?⁠input_example:'i -> ?⁠output_example:'o -> ('a'i'o'b[< Security.scheme ]) Service.t -> t
val section : string -> section
val all_services_registered : unit -> bool
val section_name : section -> string
val nservices : unit -> int
val services : unit -> string array