Files
openapi-generator-original/samples/client/petstore/ocaml/README.md
William Cheng 9adfe986a3 Prepare v7.20.0 release (#22738)
* Revert "v7.19.0 release (#22732)"

This reverts commit ff400e9a31.

* prepare v7.20.0 release

* update samples

* update doc
2026-01-20 03:13:58 +08:00

1.0 KiB

This is a sample server Petstore server. For this sample, you can use the api key special-key to test the authorization filters.

This OCaml package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.20.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.OCamlClientCodegen

Requirements.

OCaml 5.x

Installation

Please run the following commands to build the package petstore_client:

opam install . --deps-only --with-test
eval $(opam env)
dune build

Getting Started

The generated directory structure is:

  • src/apis: contains several modules, each with several functions. Each function is an API endpoint.
  • src/models: contains several modules. Each module contains:
    • a type t representing an input and/or output schema of the OpenAPI spec
    • a smart constructor create for this type
  • src/support: various modules used by the generated APIs and Models