Get consumed OpenAPI spec
client.ToolSets.GetOpenAPISpec(ctx, workspaceID, toolSetID) (*ToolSetGetOpenAPISpecResponse, error)
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
package main
import (
"context"
"fmt"
"github.com/cadenya/cadenya-go"
"github.com/cadenya/cadenya-go/option"
)
func main() {
client := cadenya.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.ToolSets.GetOpenAPISpec(
context.TODO(),
"workspaceId",
"toolSetId",
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Spec)
}
{
"spec": "spec"
}Returns Examples
{
"spec": "spec"
}