Created
September 17, 2018 12:42
-
-
Save letzya/eccdb8289fe834c47272b76427adf56a to your computer and use it in GitHub Desktop.
Tyk Api definition for BodyTransportXML-To-JSON-petstore.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "5b9f7af01706240001514239", | |
"name": "Swagger Petstore #demo", | |
"slug": "v2", | |
"api_id": "2f0a9c3265d34f06519b68a5e4737087", | |
"org_id": "5b3e218792306d000140a992", | |
"use_keyless": true, | |
"use_oauth2": false, | |
"use_openid": false, | |
"openid_options": { | |
"providers": [], | |
"segregate_by_client": false | |
}, | |
"oauth_meta": { | |
"allowed_access_types": [], | |
"allowed_authorize_types": [], | |
"auth_login_redirect": "" | |
}, | |
"auth": { | |
"use_param": false, | |
"param_name": "", | |
"use_cookie": false, | |
"cookie_name": "", | |
"auth_header_name": "", | |
"use_certificate": false | |
}, | |
"use_basic_auth": false, | |
"basic_auth": { | |
"disable_caching": false, | |
"cache_ttl": 0 | |
}, | |
"use_mutual_tls_auth": false, | |
"client_certificates": [], | |
"upstream_certificates": {}, | |
"pinned_public_keys": {}, | |
"enable_jwt": false, | |
"use_standard_auth": false, | |
"enable_coprocess_auth": false, | |
"jwt_signing_method": "", | |
"jwt_source": "", | |
"jwt_identity_base_field": "", | |
"jwt_client_base_field": "", | |
"jwt_policy_field_name": "", | |
"jwt_disable_issued_at_validation": false, | |
"jwt_disable_expires_at_validation": false, | |
"jwt_disable_not_before_validation": false, | |
"jwt_skip_kid": false, | |
"notifications": { | |
"shared_secret": "", | |
"oauth_on_keychange_url": "" | |
}, | |
"enable_signature_checking": false, | |
"hmac_allowed_clock_skew": -1, | |
"base_identity_provided_by": "", | |
"definition": { | |
"location": "header", | |
"key": "version", | |
"strip_path": false | |
}, | |
"version_data": { | |
"not_versioned": false, | |
"default_version": "v2", | |
"versions": { | |
"v2": { | |
"name": "v2", | |
"expires": "", | |
"paths": { | |
"ignored": [], | |
"white_list": [], | |
"black_list": [] | |
}, | |
"use_extended_paths": true, | |
"extended_paths": { | |
"transform_response": [ | |
{ | |
"template_data": { | |
"input_type": "xml", | |
"template_mode": "blob", | |
"enable_session": false, | |
"template_source": "ewogICAgImNhdGVnb3J5IjogewogICAgICAgICJpZCI6IHt7LlBldC5jYXRlZ29yeS5pZH19LAogICAgICAgICJuYW1lIjogInt7LlBldC5jYXRlZ29yeS5uYW1lfX0iCiAgICB9LAogICAgImlkIjoge3suUGV0LmlkfX0sCiAgICAibmFtZSI6IHt7LlBldC5uYW1lfX0sCiAgICAicGhvdG9VcmxzIjogWwogICAgICAgIHt7LlBldC5waG90b1VybHMucGhvdG9Vcmx9fQogICAgXSwKICAgICJzdGF0dXMiOiB7ey5QZXQuc3RhdHVzfX0sCiAgICAidGFncyI6IFsKICAgICAgICB7CiAgICAgICAgICAgICJpZCI6IHt7LlBldC50YWdzLnRhZy5pZH19LAogICAgICAgICAgICAibmFtZSI6IHt7LlBldC50YWdzLnRhZy5uYW1lfX0KICAgICAgICB9CiAgICBdCn0=" | |
}, | |
"path": "/pet/{petId}", | |
"method": "GET" | |
} | |
], | |
"track_endpoints": [ | |
{ | |
"path": "/pet/{petId}/uploadImage", | |
"method": "POST" | |
}, | |
{ | |
"path": "/store/order/{orderId}", | |
"method": "GET" | |
}, | |
{ | |
"path": "/store/order/{orderId}", | |
"method": "DELETE" | |
}, | |
{ | |
"path": "/user/createWithArray", | |
"method": "POST" | |
}, | |
{ | |
"path": "/user/createWithList", | |
"method": "POST" | |
}, | |
{ | |
"path": "/pet/findByStatus", | |
"method": "GET" | |
}, | |
{ | |
"path": "/user/{username}", | |
"method": "PUT" | |
}, | |
{ | |
"path": "/user/{username}", | |
"method": "DELETE" | |
}, | |
{ | |
"path": "/user/{username}", | |
"method": "GET" | |
}, | |
{ | |
"path": "/store/inventory", | |
"method": "GET" | |
}, | |
{ | |
"path": "/pet/findByTags", | |
"method": "GET" | |
}, | |
{ | |
"path": "/user/logout", | |
"method": "GET" | |
}, | |
{ | |
"path": "/store/order", | |
"method": "POST" | |
}, | |
{ | |
"path": "/pet/{petId}", | |
"method": "GET" | |
}, | |
{ | |
"path": "/pet/{petId}", | |
"method": "DELETE" | |
}, | |
{ | |
"path": "/pet/{petId}", | |
"method": "POST" | |
}, | |
{ | |
"path": "/user/login", | |
"method": "GET" | |
}, | |
{ | |
"path": "/user", | |
"method": "POST" | |
}, | |
{ | |
"path": "/pet", | |
"method": "PUT" | |
}, | |
{ | |
"path": "/pet", | |
"method": "POST" | |
} | |
] | |
}, | |
"global_headers": {}, | |
"global_headers_remove": [], | |
"global_size_limit": 0, | |
"override_target": "" | |
} | |
} | |
}, | |
"uptime_tests": { | |
"check_list": [], | |
"config": { | |
"expire_utime_after": 0, | |
"service_discovery": { | |
"use_discovery_service": false, | |
"query_endpoint": "", | |
"use_nested_query": false, | |
"parent_data_path": "", | |
"data_path": "", | |
"port_data_path": "", | |
"target_path": "", | |
"use_target_list": false, | |
"cache_timeout": 60, | |
"endpoint_returns_list": false | |
}, | |
"recheck_wait": 0 | |
} | |
}, | |
"proxy": { | |
"preserve_host_header": false, | |
"listen_path": "/petstore", | |
"target_url": "https://petstore.swagger.io/v2/", | |
"strip_listen_path": true, | |
"enable_load_balancing": false, | |
"target_list": [], | |
"check_host_against_uptime_tests": false, | |
"service_discovery": { | |
"use_discovery_service": false, | |
"query_endpoint": "", | |
"use_nested_query": false, | |
"parent_data_path": "", | |
"data_path": "", | |
"port_data_path": "", | |
"target_path": "", | |
"use_target_list": false, | |
"cache_timeout": 0, | |
"endpoint_returns_list": false | |
}, | |
"transport": { | |
"ssl_ciphers": [], | |
"ssl_min_version": 0, | |
"proxy_url": "" | |
} | |
}, | |
"disable_rate_limit": false, | |
"disable_quota": false, | |
"custom_middleware": { | |
"pre": [], | |
"post": [], | |
"post_key_auth": [], | |
"auth_check": { | |
"name": "", | |
"path": "", | |
"require_session": false | |
}, | |
"response": [], | |
"driver": "", | |
"id_extractor": { | |
"extract_from": "", | |
"extract_with": "", | |
"extractor_config": {} | |
} | |
}, | |
"custom_middleware_bundle": "", | |
"cache_options": { | |
"cache_timeout": 0, | |
"enable_cache": false, | |
"cache_all_safe_requests": false, | |
"cache_response_codes": [], | |
"enable_upstream_cache_control": false, | |
"cache_control_ttl_header": "" | |
}, | |
"session_lifetime": 0, | |
"active": true, | |
"auth_provider": { | |
"name": "", | |
"storage_engine": "", | |
"meta": {} | |
}, | |
"session_provider": { | |
"name": "", | |
"storage_engine": "", | |
"meta": {} | |
}, | |
"event_handlers": { | |
"events": {} | |
}, | |
"enable_batch_request_support": false, | |
"enable_ip_whitelisting": false, | |
"allowed_ips": [], | |
"enable_ip_blacklisting": false, | |
"blacklisted_ips": [], | |
"dont_set_quota_on_create": false, | |
"expire_analytics_after": 0, | |
"response_processors": [ | |
{ | |
"name": "response_body_transform", | |
"options": {} | |
} | |
], | |
"CORS": { | |
"enable": false, | |
"allowed_origins": [], | |
"allowed_methods": [], | |
"allowed_headers": [], | |
"exposed_headers": [], | |
"allow_credentials": false, | |
"max_age": 0, | |
"options_passthrough": false, | |
"debug": false | |
}, | |
"domain": "", | |
"do_not_track": false, | |
"tags": [], | |
"enable_context_vars": false, | |
"config_data": {}, | |
"tag_headers": [], | |
"global_rate_limit": { | |
"rate": 0, | |
"per": 0 | |
}, | |
"strip_auth_data": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment