opentelekomcloud / vault-plugin-secrets-openstack

Create OpenStack tokens using HashiCorp Vault
Apache License 2.0
23 stars 6 forks source link

GET role/:name VS roles/:name #102

Closed kucerakk closed 2 years ago

kucerakk commented 2 years ago

Current implementation uses:

Cloud

GET|POST|PUT|DELETE  /openstack/cloud/:name

Role

GET|POST|PUT|DELETE  /openstack/role/:name

Static role

GET|POST|PUT|DELETE  /openstack/static-role/:name

To have it logically right I believe it should be:

Cloud

GET|POST|PUT|DELETE  /openstack/clouds/:name

Role

GET|POST|PUT|DELETE  /openstack/roles/:name

Static role

GET|POST|PUT|DELETE  /openstack/static-roles/:name