Hi All,
I am trying to configure rate limiting at endpoint level in Tyk but not able to achieve it.
Below is my API payload for this -
{
"api_id": "b84fe1a04e5648927971c0557971565c",
"use_keyless": true,
"definition": {
"key": "version",
"location": "header"
},
"name": "Tyk Test API",
"org_id": "664a14650619d40001f1f00f",
"proxy": {
"listen_path": "/tyk-api-test/",
"strip_listen_path": true,
"target_url": "https://httpbin.org"
},
"global_rate_limit": {
"disabled": false,
"rate": 10,
"per": 60
},
"version_data": {
"not_versioned": true,
"versions": {
"default": {
"name": "default",
"use_extended_paths": true,
"extended_paths": {
"rate_limit": [
{
"disabled": false,
"path": "anything",
"method": "GET",
"limit": 2,
"per": 60,
"distributed": false
},
{
"disabled": false,
"path": "anything",
"method": "POST",
"limit": 5,
"per": 60,
"distributed": false
}
]
}
}
}
}
}
When I am testing this API with GET and POST I dont see rate limit is getting applied.
Also when I do “GET /tyk/apis/b84fe1a04e5648927971c0557971565c” I am not able to see rate_limit section in response.
I am referring to below docs links for reference -
Please let me know if I am missing anything here.