Handlers (Tools)
Openapi Handler
The OpenAPIHandler class provides a simple way to interact with APIs that follow the OpenAPI specification. It allows you to load the OpenAPI specification from either a URL or a local file in JSON or YAML format. You can easily retrieve all available API endpoints, get the supported HTTP methods for each endpoint, and view detailed information about specific operations. The class also includes a call_endpoint method that makes it easy to send API requests with customizable parameters, request bodies, and headers. This makes the OpenAPIHandler class a powerful tool for automating interactions with APIs in a Python-based workflow.
openapi_handler.py