package ez_api

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. mutable doc_id : int;
  2. doc_name : string option;
  3. doc_descr : string option;
  4. doc_path : string;
  5. doc_args : Arg.descr list;
  6. doc_params : Param.t list;
  7. doc_section : section;
  8. doc_input : Json_schema.schema Stdlib.Lazy.t option;
  9. doc_output : Json_schema.schema Stdlib.Lazy.t option;
  10. doc_mime : Mime.t list;
  11. doc_errors : (int * Json_schema.schema Stdlib.Lazy.t) list;
  12. doc_meth : Meth.t;
  13. doc_security : Security.scheme list;
  14. doc_input_example : Json_repr.any option;
  15. doc_output_example : Json_repr.any option;
  16. doc_hide : bool;
  17. doc_register : bool;
}
and section = {
  1. section_name : string;
  2. mutable section_docs : t list;
}
val default_section : section
val sections : section list Stdlib.ref
val definitions_path : string
val make : 'i. ?name:string -> ?descr:string -> ?register:bool -> ?hide:bool -> ?section:section -> ?input_example:'i -> ?output_example:'o -> ('a, 'i, 'o, 'b, [< Security.scheme ]) Service.t -> t
val update_service_list : t list -> t -> t list
val register : t -> unit
val section : string -> section
val all_services_registered : unit -> bool
val section_name : section -> string
val nservices : unit -> int
val services : unit -> string array
OCaml

Innovation. Community. Security.