Skip to content

Instantly share code, notes, and snippets.

@asoorm
Created March 4, 2018 12:04
Show Gist options
  • Save asoorm/3c1b493465b31447b3a6602988b0d7d3 to your computer and use it in GitHub Desktop.
Save asoorm/3c1b493465b31447b3a6602988b0d7d3 to your computer and use it in GitHub Desktop.
Example Auth-Token Protected API Definition for Tyk API Gateway
{
"name": "AuthToken HttpBin",
"api_id": "1",
"org_id": "default",
"auth": {
"auth_header_name": "Authorization"
},
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
"name": "Default",
"expires": "3000-01-02 15:04",
"use_extended_paths": true,
"extended_paths": {
"ignored": [],
"white_list": [],
"black_list": []
}
}
}
},
"proxy": {
"listen_path": "/httpbin/",
"target_url": "http://httpbin.org",
"strip_listen_path": true
},
"enable_batch_request_support": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment