package ocplib-resto

  1. Overview
  2. Docs
type service_descr = {
  1. description : string option;
  2. input : Json_schema.schema;
  3. output : Json_schema.schema;
}
val service_descr_encoding : service_descr Json_encoding.encoding
type directory_descr =
  1. | Static of static_directory_descr
  2. | Dynamic of string option
and static_directory_descr = {
  1. service : service_descr option;
  2. subdirs : static_subdirectories_descr option;
}
and static_subdirectories_descr =
  1. | Suffixes of directory_descr Map.Make(String).t
  2. | Arg of Arg.descr * directory_descr
val directory_descr_encoding : directory_descr Json_encoding.encoding
val service : ?description:string -> ('a, 'b) Path.path -> ('a, 'b, bool option, directory_descr) service
val pp_print_directory_descr : Format.formatter -> directory_descr -> unit
val pp_print_static_directory_descr : Format.formatter -> static_directory_descr -> unit
val pp_print_static_subdirectories_descr : Format.formatter -> static_subdirectories_descr -> unit
val pp_print_dispatch_service_descr : Format.formatter -> service_descr -> unit
OCaml

Innovation. Community. Security.