Hi,
I’m trying to get a consumer by username.
The documentation says to do /consumers/{username or id}
. I seem to be missing something as it’s not working for me.
Kong Version:
➜ ~ kong version
1.1.2
➜ ~ alias csg
csg='curl -s -X GET'
➜ ~ echo $kad
http://localhost:8001
➜ ~ csg "$kad/consumers" | jq
{
"next": null,
"data": [
{
... a user
},
{
"custom_id": null,
"created_at": 1558997296,
"id": "26046496-9286-41bc-9db7-80eca06877a9",
"tags": null,
"username": "7e68b45b-6cb9-4420-b364-0281d4859b95"
}
]
}
➜ ~ csg $kad/consumers/7e68b45b-6cb9-4420-b364-0281d4859b95 | jq
{
"message": "Not found"
}