package openapi_router

  1. Overview
  2. Docs

Module Openapi_router.MakeSource

Parameters

module Config : sig ... end

Signature

Sourcetype t = {
  1. spec : Spec.t;
  2. routes : Config.route list;
}
Sourceval empty : t
Sourceval title : string -> t -> t

Specify Openapi title metadata

Sourceval description : string -> t -> t

Specify Openapi description metadata

Sourceval terms_of_service : string -> t -> t

Specify Openapi terms of service metadata

Sourceval contact : Spec.contact_object -> t -> t

Specify Openapi contact metadata

Sourceval license : Spec.license_object -> t -> t

Specify Openapi license metadata

Sourceval version : string -> t -> t

Specify Openapi version metadata

Sourceval schema : string -> Openapi_router__.Json_schema.schema Openapi_router__.Json_schema.or_ref -> t -> t

Add a named component to an application spec

Sourceval response : string -> Spec.response_object Openapi_router__.Json_schema.or_ref -> t -> t

Add a named component to an application spec

Sourceval parameter : string -> Spec.parameter_object Openapi_router__.Json_schema.or_ref -> t -> t

Add a named component to an application spec

Sourceval example : string -> Spec.example_object Openapi_router__.Json_schema.or_ref -> t -> t

Add a named component to an application spec

Sourceval request_body : string -> Spec.request_body_object Openapi_router__.Json_schema.or_ref -> t -> t

Add a named component to an application spec

Sourceval header : string -> Spec.header_object Openapi_router__.Json_schema.or_ref -> t -> t

Add a named component to an application spec

Sourceval security_scheme : string -> Spec.security_scheme_object Openapi_router__.Json_schema.or_ref -> t -> t

Add a named component to an application spec

Add a named component to an application spec

Sourceval callback : string -> Spec.callback_object Openapi_router__.Json_schema.or_ref -> t -> t

Add a named component to an application spec

Sourceval schema_ref : string -> 'a Openapi_router__.Json_schema.or_ref

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Sourceval response_ref : string -> 'a Openapi_router__.Json_schema.or_ref

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Sourceval parameter_ref : string -> 'a Openapi_router__.Json_schema.or_ref

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Sourceval example_ref : string -> 'a Openapi_router__.Json_schema.or_ref

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Sourceval request_body_ref : string -> 'a Openapi_router__.Json_schema.or_ref

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Sourceval header_ref : string -> 'a Openapi_router__.Json_schema.or_ref

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Sourceval security_scheme_ref : string -> 'a Openapi_router__.Json_schema.or_ref

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Sourceval callback_ref : string -> 'a Openapi_router__.Json_schema.or_ref

Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)

Sourceval get : ?tags:string list -> ?summary:string -> ?description:string -> ?external_docs:Spec.external_documentation_object -> ?operation_id:string -> ?parameters:Spec.parameter_object Openapi_router__.Json_schema.or_ref list -> ?request_body:Spec.request_body_object Openapi_router__.Json_schema.or_ref -> ?responses:Spec.responses_object -> ?callbacks: (string * Spec.callback_object Openapi_router__.Json_schema.or_ref) list -> ?deprecated:bool -> ?security:Yojson.Safe.t -> ?servers:Spec.server_object list -> string -> Config.handler -> t -> t
Sourceval default_request_body : Spec.request_body_object Openapi_router__.Json_schema.or_ref
Sourceval post : ?tags:string list -> ?summary:string -> ?description:string -> ?external_docs:Spec.external_documentation_object -> ?operation_id:string -> ?parameters:Spec.parameter_object Openapi_router__.Json_schema.or_ref list -> ?request_body:Spec.request_body_object Openapi_router__.Json_schema.or_ref -> ?responses:Spec.responses_object -> ?callbacks: (string * Spec.callback_object Openapi_router__.Json_schema.or_ref) list -> ?deprecated:bool -> ?security:Yojson.Safe.t -> ?servers:Spec.server_object list -> string -> Config.handler -> t -> t
Sourceval delete : ?tags:string list -> ?summary:string -> ?description:string -> ?external_docs:Spec.external_documentation_object -> ?operation_id:string -> ?parameters:Spec.parameter_object Openapi_router__.Json_schema.or_ref list -> ?request_body:Spec.request_body_object Openapi_router__.Json_schema.or_ref -> ?responses:Spec.responses_object -> ?callbacks: (string * Spec.callback_object Openapi_router__.Json_schema.or_ref) list -> ?deprecated:bool -> ?security:Yojson.Safe.t -> ?servers:Spec.server_object list -> string -> Config.handler -> t -> t
Sourceval put : ?tags:string list -> ?summary:string -> ?description:string -> ?external_docs:Spec.external_documentation_object -> ?operation_id:string -> ?parameters:Spec.parameter_object Openapi_router__.Json_schema.or_ref list -> ?request_body:Spec.request_body_object Openapi_router__.Json_schema.or_ref -> ?responses:Spec.responses_object -> ?callbacks: (string * Spec.callback_object Openapi_router__.Json_schema.or_ref) list -> ?deprecated:bool -> ?security:Yojson.Safe.t -> ?servers:Spec.server_object list -> string -> Config.handler -> t -> t
Sourceval options : ?tags:string list -> ?summary:string -> ?description:string -> ?external_docs:Spec.external_documentation_object -> ?operation_id:string -> ?parameters:Spec.parameter_object Openapi_router__.Json_schema.or_ref list -> ?request_body:Spec.request_body_object Openapi_router__.Json_schema.or_ref -> ?responses:Spec.responses_object -> ?callbacks: (string * Spec.callback_object Openapi_router__.Json_schema.or_ref) list -> ?deprecated:bool -> ?security:Yojson.Safe.t -> ?servers:Spec.server_object list -> string -> Config.handler -> t -> t
Sourceval head : ?tags:string list -> ?summary:string -> ?description:string -> ?external_docs:Spec.external_documentation_object -> ?operation_id:string -> ?parameters:Spec.parameter_object Openapi_router__.Json_schema.or_ref list -> ?request_body:Spec.request_body_object Openapi_router__.Json_schema.or_ref -> ?responses:Spec.responses_object -> ?callbacks: (string * Spec.callback_object Openapi_router__.Json_schema.or_ref) list -> ?deprecated:bool -> ?security:Yojson.Safe.t -> ?servers:Spec.server_object list -> string -> Config.handler -> t -> t
Sourceval patch : ?tags:string list -> ?summary:string -> ?description:string -> ?external_docs:Spec.external_documentation_object -> ?operation_id:string -> ?parameters:Spec.parameter_object Openapi_router__.Json_schema.or_ref list -> ?request_body:Spec.request_body_object Openapi_router__.Json_schema.or_ref -> ?responses:Spec.responses_object -> ?callbacks: (string * Spec.callback_object Openapi_router__.Json_schema.or_ref) list -> ?deprecated:bool -> ?security:Yojson.Safe.t -> ?servers:Spec.server_object list -> string -> Config.handler -> t -> t
Sourceval build : t -> Config.app
OCaml

Innovation. Community. Security.