Skip to content

Commit

Permalink
Merge pull request #17 from hashicorp/openapi-path-updates
Browse files Browse the repository at this point in the history
Update path definitions to work with OpenAPI
  • Loading branch information
kalafut committed Nov 6, 2018
2 parents 5a464a6 + d9a4a8d commit cf99b36
Show file tree
Hide file tree
Showing 89 changed files with 4,430 additions and 649 deletions.
116 changes: 104 additions & 12 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ func pathInvalid(b *versionedKVBackend) []*framework.Path {
return []*framework.Path{
&framework.Path{
Pattern: ".*",
Callbacks: map[logical.Operation]framework.OperationFunc{
logical.UpdateOperation: handler,
logical.CreateOperation: handler,
logical.ReadOperation: handler,
logical.DeleteOperation: handler,
logical.ListOperation: handler,
Operations: map[logical.Operation]framework.OperationHandler{
logical.UpdateOperation: &framework.PathOperation{Callback: handler, Unpublished: true},
logical.CreateOperation: &framework.PathOperation{Callback: handler, Unpublished: true},
logical.ReadOperation: &framework.PathOperation{Callback: handler, Unpublished: true},
logical.DeleteOperation: &framework.PathOperation{Callback: handler, Unpublished: true},
logical.ListOperation: &framework.PathOperation{Callback: handler, Unpublished: true},
},

HelpDescription: pathInvalidHelp,
Expand Down
Loading

0 comments on commit cf99b36

Please sign in to comment.