Hello,
is it possible to create a key with predefined id?
curl localhost:8080/tyk/keys -X POST --header "x-tyk-authorization: foo" -d '
{
"quota_max": 0,
"rate": 3,
"per": 10,
"org_id": "org-id-api-key",
"access_rights": {
"delivery-apikey": {
"api_name": "delivery-apikey",
"api_id": "delivery-apikey",
"versions": [
"Default"
],
"allowed_urls": [],
"limit": null,
"allowance_scope": ""
}
}
}'
My backend service expects request with API-Key which is stored in DB and call my API like this:
curl -X POST http://localhost:8080/delivery/v1/ -H “X-Api-Key:ksjhdfskfhskdfhskd2khf23kfh23kfh23f”
so tyk should check that X-Api-Key is present in request and my backend service should validate the Key.