| { |
| "name": "Plugin-Test", |
| "api_id": "test", |
| "org_id": "default", |
| "definition": { |
| "location": "header", |
| "key": "version" |
| }, |
| "use_keyless": true, |
| "version_data": { |
| "not_versioned": true, |
| "versions": { |
| "Default": { |
| "name": "Default" |
| } |
| } |
| }, |
| "custom_middleware": { |
| "post": [ |
| { |
| "name": "CasbinAuthz", |
| "path": "/opt/tyk-gateway/apps/casbin_authz/plugin.so" |
| } |
| ], |
| "driver": "goplugin" |
| }, |
| "proxy": { |
| "listen_path": "/test", |
| "target_url": "http://httpbin.org", |
| "strip_listen_path": true |
| }, |
| "config_data": { |
| "casbin_authz_plugin": { |
| "model_path": "/opt/tyk-gateway/apps/casbin_authz/authz_model.conf", |
| "policy_path": "/opt/tyk-gateway/apps/casbin_authz/authz_policy.csv" |
| } |
| } |
| } |