Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add display attributes for OpenAPI OperationID's #192

Merged
merged 6 commits into from
Apr 18, 2023
Merged

Conversation

averche
Copy link
Contributor

@averche averche commented Apr 9, 2023

Overview

The display attributes added in this PR will be translated into OperationID's in vault-generated OpenAPI documents (when calling /sys/internal/specs/openapi with this plugin enabled). The OperationID's will, in turn, be translated into function / method names in generated OpenAPI-based libraries (e.g. hashicorp/vault-client-go & hashicorp/vault-client-dotnet).


This PR will introduce the following OperationIDs:

Path Method OperationID
"/auth/{kubernetes_mount_path}/config" "get" "kubernetes-read-auth-configuration"
"/auth/{kubernetes_mount_path}/config" "post" "kubernetes-configure-auth"
"/auth/{kubernetes_mount_path}/login" "post" "kubernetes-login"
"/auth/{kubernetes_mount_path}/role" "get" "kubernetes-list-auth-roles"
"/auth/{kubernetes_mount_path}/role/{name}" "get" "kubernetes-read-auth-role"
"/auth/{kubernetes_mount_path}/role/{name}" "post" "kubernetes-write-auth-role"
"/auth/{kubernetes_mount_path}/role/{name}" "delete" "kubernetes-delete-auth-role"

Related Issues/Pull Requests

@averche averche changed the title Display attributes Add display attributes for OpenAPI OperationID's Apr 11, 2023
path_login.go Outdated Show resolved Hide resolved
@averche averche requested review from a team April 12, 2023 20:33
@averche averche merged commit 6e38704 into main Apr 18, 2023
@averche averche deleted the display-attributes branch April 18, 2023 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants