h2oGPTe REST API: OpenAPI specification file
Overview​
The h2oGPTe OpenAPI specification file outlines the structure and functionality of the h2oGPTe REST API, detailing available endpoints, request and response formats, and authentication requirements.
-
OpenAPI specification: Access the specification in YAML format:
-
Interactive documentation: Explore the API through an interactive interface, complete with live endpoint examples:
Using the OpenAPI specification file for the h2oGPTe REST API, we have generated SDKs in multiple programming languages to help you quickly integrate with the API. Below are the available SDKs:
- Python SDK
- Download Python SDK
- JavaScript SDK
- Download JavaScript SDK
- Go SDK
- Download Go SDK
How we generated the SDKs​
The available SDKs were developed using the OpenAPI Generator CLI, a robust tool designed to create client libraries directly from OpenAPI specifications.
General CLI structure​
pip install openapi-generator-cli==7.10.0
openapi-generator-cli generate \
-i replace-with-openapi-spec-link \
-g replace-with-language \
-o replace-with-output-directory \
--additional-properties=replace-with-additional-properties
-i
: The path or URL to the OpenAPI spec (for example,openapi.yaml
orhttps://example.com/openapi.yaml
).-g
: The target programming language for the client (for example,python
,javascript
).-o
: The output directory for the generated files (for example,./python-client
).--additional-properties
: Additional settings for client generation (for example,usePromises=true
for JavaScript).
For more information about generating SDKs in other languages, visit the OpenAPI Generator CLI documentation.
- Submit and view feedback for this page
- Send feedback about Enterprise h2oGPTe to cloud-feedback@h2o.ai