JWT API - List Roles: fix the path

With vault-1.0.0 and vault-0.11.4 a different path is needed to list the jwt registered roles:

```
$ vault list auth/jwt/roles
No value found at auth/jwt/roles/

$ vault list auth/jwt/role
Keys
----
myrole
```
I hope this helps!
This commit is contained in:
Hugues Malphettes 2018-12-13 06:25:44 +08:00 committed by hmalphettes
parent dfc8b37dc7
commit 6ea6844ef9
No known key found for this signature in database
GPG key ID: 2362667356DAFC91

View file

@ -207,7 +207,7 @@ Lists all the roles that are registered with the plugin.
| Method | Path | Produces |
| :------- | :--------------------------- | :--------------------- |
| `LIST` | `/auth/jwt/roles` | `200 application/json` |
| `LIST` | `/auth/jwt/role` | `200 application/json` |
### Sample Request
@ -215,7 +215,7 @@ Lists all the roles that are registered with the plugin.
$ curl \
--header "X-Vault-Token: ..." \
--request LIST \
https://127.0.0.1:8200/v1/auth/jwt/roles
https://127.0.0.1:8200/v1/auth/jwt/role
```
### Sample Response