Library
Module
Module type
Parameter
Class
Class type
module Config : sig ... end
val empty : t
val contact : Spec.contact_object -> t -> t
Specify Openapi contact metadata
val license : Spec.license_object -> t -> t
Specify Openapi license metadata
val schema :
string ->
Openapi_router__.Json_schema.schema Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
val response :
string ->
Spec.response_object Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
val parameter :
string ->
Spec.parameter_object Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
val example :
string ->
Spec.example_object Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
val request_body :
string ->
Spec.request_body_object Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
val header :
string ->
Spec.header_object Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
val security_scheme :
string ->
Spec.security_scheme_object Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
val link :
string ->
Spec.link_object Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
val callback :
string ->
Spec.callback_object Openapi_router__.Json_schema.or_ref ->
t ->
t
Add a named component to an application spec
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)
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)
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)
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)
Return a JSON reference to a named component of a spec (Note: doesn't confirm that the component actually exists)
val 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
val default_request_body :
Spec.request_body_object Openapi_router__.Json_schema.or_ref
val 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
val 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
val 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
val 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
val 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
val 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
val build : t -> Config.app