package tezos-openapi

  1. Overview
  2. Docs

API endpoints, i.e. paths associated with one or more HTTP methods.

type methods = (Method.t * Service.t) list

Associative lists for methods and their implementation.

type t = {
  1. path : Path.t;
  2. methods : methods;
}

API endpoints specifications.

val get_method : t -> Method.t -> Service.t option

Get the service associated to a method for a given endpoint, if any.

val make : ?get:Service.t -> ?post:Service.t -> ?put:Service.t -> ?delete:Service.t -> ?patch:Service.t -> Path.t -> t
OCaml

Innovation. Community. Security.