We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427fa93 commit c3ac959Copy full SHA for c3ac959
internal/build/cmd/generate/commands/gensource/generator.go
@@ -526,6 +526,15 @@ func (r ` + g.Endpoint.MethodWithNamespace() + `Request) Do(providedCtx context.
526
method = "POST"
527
}`)
528
g.w("\n\n")
529
+ case "security.create_service_token":
530
+ g.w("\t")
531
+ g.w(`if r.Name != "" {
532
+ method = "POST"
533
+ } else {
534
+ method = "PUT"
535
+ }`)
536
+ g.w("\n\n")
537
+
538
default:
539
var httpMethod string
540
// If endpoint has both GET and POST available
0 commit comments