package ocplib-resto

  1. Overview
  2. Docs

Service directory description

type service_descr = Resto_impl.Description.service_descr = {
  1. description : string option;
  2. input : Json_schema.schema;
  3. output : Json_schema.schema;
}
type directory_descr = Resto_impl.Description.directory_descr =
  1. | Static of static_directory_descr
  2. | Dynamic of string option
and static_directory_descr = Resto_impl.Description.static_directory_descr = {
  1. service : service_descr option;
  2. subdirs : static_subdirectories_descr option;
}
val service : ?description:string -> ('prefix, 'params) Path.path -> ('prefix, 'params, bool option, directory_descr) service
val pp_print_directory_descr : Format.formatter -> directory_descr -> unit
OCaml

Innovation. Community. Security.