package ez_api
Easy API library and tools
Install
Dune Dependency
github.com
Readme
LGPL-2.1-only WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (6)
Authors
Maintainers
Sources
v1.0.0.tar.gz
md5=d4dcb8a0be9cf87fca6471cecf083d9a
sha512=452a5de00bf0b51926d9c4c5c9062981c372ebce9ccfd0586b1e1b9b42c96721035dc7cd405e4bdd936ae0a7e69f442e4063713756b7cdac246319198fb89e2c
doc/ez_api.openAPI/EzOpenAPI/Makers/index.html
Module EzOpenAPI.Makers
Source
Source
val mk_info :
?descr:string ->
?terms:string ->
?contact:Types.contact_object ->
?license:Types.license_object ->
version:string ->
string ->
Types.openapi_info
Source
val mk_server_variable :
?enum:string list ->
?descr:string ->
string ->
Types.server_variable_object
Source
val mk_server :
?descr:string ->
?variables:(string * Types.server_variable_object) list ->
string ->
Types.server_object
Source
val mk_param :
?descr:string ->
?required:bool ->
?deprecated:bool ->
?allow_empty:bool ->
?style:string ->
?example:Json_repr.any ->
?typ:EzAPI.Param.kind ->
?loc:string ->
string ->
Types.param_object
Source
val mk_media :
?schema:Json_schema.schema ->
?example:Json_repr.any ->
?encoding:Types.encoding_object ->
unit ->
Types.media_type_object
Source
val mk_response :
?headers:(string * Types.param_object) list ->
?content:(string * Types.media_type_object) list ->
?links:(string * Types.link_object) list ->
string ->
Types.response_object
Source
val mk_request :
?descr:string ->
?required:bool ->
(string * Types.media_type_object) list ->
Types.request_object
Source
val mk_operation :
?tags:string list ->
?summary:string ->
?descr:string ->
?extern:Types.external_doc_object ->
?id:string ->
?params:Types.param_object list ->
?request:Types.request_object ->
?deprecated:bool ->
?security:EzAPI.Security.scheme list ->
?servers:Types.server_object list ->
(string * Types.response_object) list ->
Types.operation_object
Source
val mk_path :
?oref:string ->
?summary:string ->
?descr:string ->
?servers:Types.server_object list ->
?params:Types.param_object list ->
meth:string ->
Types.operation_object ->
Types.path_item
Source
val mk_example :
?summary:string ->
?descr:string ->
?value:Json_repr.any ->
?ext:string ->
unit ->
Types.example_object
Source
val mk_security_scheme :
?descr:string ->
?name:string ->
?loc:string ->
?scheme:string ->
?format:string ->
?connect_url:string ->
string ->
Types.security_scheme_object
Source
val mk_components :
?schemas:(string * Json_repr.any) list ->
?responses:(string * Types.response_object) list ->
?parameters:(string * Types.param_object) list ->
?examples:(string * Types.example_object) list ->
?requests:(string * Types.request_object) list ->
?headers:(string * Types.param_object) list ->
?security:EzAPI.Security.scheme list ->
?links:(string * Types.link_object) list ->
unit ->
Types.components_object
Source
val mk_openapi :
?version:string ->
?servers:Types.server_object list ->
?components:Types.components_object ->
?security:EzAPI.Security.scheme list ->
?tags:string list ->
?extern:Types.external_doc_object ->
info:Types.openapi_info ->
(string * Types.path_item) list ->
Types.openapi_object
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>