Get consumed OpenAPI spec
tool_sets.get_openapi_spec(tool_set_id, **kwargs) -> ToolSetGetOpenAPISpecResponse { spec }
GET/v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/openapi_spec
Retrieves the current OpenAPI specification JSON that has been consumed by the tool set. Only applicable to tool sets using the OpenAPI adapter.
Get consumed OpenAPI spec
require "cadenya"
cadenya = Cadenya::Client.new(api_key: "My API Key")
response = cadenya.tool_sets.get_openapi_spec("toolSetId", workspace_id: "workspaceId")
puts(response){
"spec": "spec"
}Returns Examples
{
"spec": "spec"
}