I setup the standalone deployment of Tyk (include tyk_gateway and tyk_dashboard), after I generated a API Key (API Token) on the dashboard UI, then tried to get the keys via the API:
`
GET /api/apis/9662dec53b3d4d3d7ea6dc0bbeeb4959/keys/ HTTP/1.1
Host: dashboard.tyk.test.dsd:3000
Authorization: 18b53b4c5a3f401c4321f6dbc963ce35
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 05 Jul 2016 11:23:22 GMT
Content-Length: 32
{“data”:{“keys”:null},“pages”:0}
`
The result is null.
But if I get the key with the key id:
`
GET /api/apis/9662dec53b3d4d3d7ea6dc0bbeeb4959/keys/577b8b09c793170001000001c55ad4c33db94d2f6896c48fcc85f161 HTTP/1.1
Host: dashboard.tyk.test.dsd:3000
Authorization: 18b53b4c5a3f401c4321f6dbc963ce35
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 05 Jul 2016 11:30:08 GMT
Content-Length: 718
{“api_model”:{},“key_id”:“577b8b09c793170001000001c55ad4c33db94d2f6896c48fcc85f161”,“data”:{“last_check”:0,“allowance”:998,“rate”:1000,“per”:1,“expires”:0,“quota_max”:-1,“quota_renews”:1467717279,“quota_remaining”:-1,“quota_renewal_rate”:60,…}}
`
It works.
From the document https://tyk.io/docs/tyk-dashboard-v1-0/dashboard-api/api-tokens/, has a api for get list of keys.
Any operations I did wrong?
Thanks!