@ScottFN My error. It seems using config_data
is the only way this works.
I assumed the spec contained the whole API definition. Converting the spec to string shows it only contains 4 properties below
{
"config_data": "{}",
"OrgID": "63491e8aed24600080342f41",
"bundle_hash": "56e0fa2de371bae49e1360a716855fa7",
"APIID": "4dc7f224902948ba58f7f7a701c2bd0e"
}
I think in golang plugins, there is a way to get the API from the api_id
. But Python does not have access to the internals of Tyk. Apologies for leading you off.