openapi: Add display attributes for RabbitMQ plugin (#19540)

This commit is contained in:
Anton Averchenkov
2023-04-10 14:19:32 -04:00
committed by GitHub
parent 1a2c60dae5
commit 388948e858
5 changed files with 44 additions and 3 deletions

View File

@@ -21,6 +21,13 @@ const (
func pathCreds(b *backend) *framework.Path {
return &framework.Path{
Pattern: "creds/" + framework.GenericNameRegex("name"),
DisplayAttrs: &framework.DisplayAttributes{
OperationPrefix: operationPrefixRabbitMQ,
OperationVerb: "request",
OperationSuffix: "credentials",
},
Fields: map[string]*framework.FieldSchema{
"name": {
Type: framework.TypeString,