Guess
Generate configuration suggestions based on an OpenAPI spec
client.Projects.Configs.Guess(ctx, params) (*ContentstringProjectConfigGuessResponse, error)
post/v0/projects/{project}/configs/guess
Generate configuration suggestions based on an OpenAPI spec
Parameters
paramsProjectfieldSpecfieldBranchfieldProjectConfigGuessParams
Returns
package main
import (
"context"
"fmt"
"github.com/stainless-api/stainless-api-go"
"github.com/stainless-api/stainless-api-go/option"
)
func main() {
client := stainless.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Projects.Configs.Guess(context.TODO(), stainless.ProjectConfigGuessParams{
Project: stainless.String("project"),
Spec: "spec",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
200 Example
{
"foo": {
"content": "content"
}
}