ocaml.api-intf.mustache Maven / Gradle / Ivy
{{>partial_header}}
{{#operations}}
{{#operation}}
{{#description}}
* Schema {{{classname}}} : {{{description}}}
{{/description}}
{{/operation}}
{{/operations}}
*)
{{#operations}}
{{#operation}}
val {{{operationId}}} : {{^hasParams}}unit{{/hasParams}}{{#allParams}}{{#required}}{{{paramName}}}{{/required}}{{^required}}{{^isBodyParam}}?{{/isBodyParam}}{{{paramName}}}{{/required}}:{{#isEnum}}Enums.{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^-last}} -> {{/-last}}{{#-last}}{{^required}} -> unit{{/required}}{{/-last}}{{/allParams}} -> {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}unit{{/returnType}} Lwt.t
{{/operation}}
{{/operations}}