package ocplib-resto

  1. Overview
  2. Docs

Parameters

Signature

include sig ... end
val construct : 't Json_encoding.encoding -> 't -> Repr.value
val destruct : 't Json_encoding.encoding -> Repr.value -> 't
val custom : ('t -> Repr.value) -> (Repr.value -> 't) -> schema:Json_schema.schema -> 't Json_encoding.encoding
type json = Repr.value
val forge_request_args : 'p. (unit, 'p) Path.path -> 'p -> string list
val forge_request : 'p 'i 'o. (unit, 'p, 'i, 'o) service -> 'p -> 'i -> string list * Repr.value
val read_answer : 'p 'i 'o. (unit, 'p, 'i, 'o) service -> Repr.value -> ('o, string) Result.result