Skip to content

Instantly share code, notes, and snippets.

@asoorm
Created February 22, 2018 09:59
Show Gist options
  • Save asoorm/e82928e0fc55f63a41c22a3c504a3127 to your computer and use it in GitHub Desktop.
Save asoorm/e82928e0fc55f63a41c22a3c504a3127 to your computer and use it in GitHub Desktop.
Tyk API Definition - Path Match With Regex
{
"name": "Path Match with Regex",
"active": true,
"api_id": "1",
"org_id": "1",
"slug": "path-match-with-regex",
"definition": {
"location": "",
"key": ""
},
"use_keyless": true,
"auth": {
"auth_header_name": ""
},
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
"name": "Default",
"use_extended_paths": true,
"extended_paths": {
"white_list": [{
"path": "(get|anything)",
"method_actions": {
"GET": {
"action": "no_action",
"code": 200,
"data": "",
"headers": {}
}
}
}]
}
}
}
},
"proxy": {
"listen_path": "/path-match-with-regex/",
"target_url": "http://httpbin.org/",
"strip_listen_path": true
},
"do_not_track": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment