Last active
September 25, 2022 08:54
-
-
Save letzya/5b5edb3f9f59ab8e0c3c614219c40747 to your computer and use it in GitHub Desktop.
test-virtual-endpoint
This file contains 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": "XXXXb1957251bab02553XXXX", | |
"name": "Test virtualEndpoint 2", | |
"slug": "testvirtual", | |
"api_id": "XXXX796c5de45e649f22da390d7XXXX", | |
"org_id": "XXXXd3a0de0dc60001ffXXXX", | |
"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, | |
"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, | |
"notifications": { | |
"shared_secret": "", | |
"oauth_on_keychange_url": "" | |
}, | |
"enable_signature_checking": false, | |
"hmac_allowed_clock_skew": -1, | |
"base_identity_provided_by": "", | |
"definition": { | |
"location": "header", | |
"key": "x-api-version" | |
}, | |
"version_data": { | |
"not_versioned": true, | |
"default_version": "", | |
"versions": { | |
"Default": { | |
"name": "Default", | |
"expires": "", | |
"paths": { | |
"ignored": [], | |
"white_list": [], | |
"black_list": [] | |
}, | |
"use_extended_paths": true, | |
"extended_paths": { | |
"virtual": [ | |
{ | |
"response_function_name": "myVirtualHandlerGetHeaders", | |
"function_source_type": "blob", | |
"function_source_uri": "ZnVuY3Rpb24gbXlWaXJ0dWFsSGFuZGxlckdldEhlYWRlcnMgKHJlcXVlc3QsIHNlc3Npb24sIGNvbmZpZykgewogICAgcmF3bG9nKCJWaXJ0dWFsIFRlc3QgcnVubmluZyIpCiAgICAKICAgIC8vVXNhZ2UgZXhhbXBsZXM6CiAgICBsb2coIlJlcXVlc3QgU2Vzc2lvbjogIiArIEpTT04uc3RyaW5naWZ5KHNlc3Npb24pKQogICAgbG9nKCJBUEkgQ29uZmlnOiIgKyBKU09OLnN0cmluZ2lmeShjb25maWcpKQogCiAgICBsb2coIlJlcXVlc3Qgb2JqZWN0OiAiICsgSlNPTi5zdHJpbmdpZnkocmVxdWVzdCkpICAgCiAgICBsb2coIlJlcXVlc3QgQm9keTogIiArIEpTT04uc3RyaW5naWZ5KHJlcXVlc3QuQm9keSkpCiAgICBsb2coIlJlcXVlc3QgSGVhZGVyczoiKyBKU09OLnN0cmluZ2lmeShyZXF1ZXN0LkhlYWRlcnMpKQogICAgbG9nKCJwYXJhbS0xOiIrIHJlcXVlc3QuUGFyYW1zWyJwYXJhbTEiXSkKICAgIAogICAgbG9nKCJSZXF1ZXN0IGhlYWRlciB0eXBlOiIgKyB0eXBlb2YgSlNPTi5zdHJpbmdpZnkocmVxdWVzdC5IZWFkZXJzKSkKICAgIGxvZygiUmVxdWVzdCBoZWFkZXI6IiArIEpTT04uc3RyaW5naWZ5KHJlcXVlc3QuSGVhZGVycy5Mb2NhdGlvbikpCiAgICAKCiAgICAvL01ha2UgYXBpIGNhbGwgdG8gdXBzdHJlYW0gdGFyZ2V0CiAgICBuZXdSZXF1ZXN0ID0gewogICAgICAgICJNZXRob2QiOiAiR0VUIiwKICAgICAgICAiQm9keSI6ICIiLAogICAgICAgICJIZWFkZXJzIjogeyJsb2NhdGlvbiI6SlNPTi5zdHJpbmdpZnkocmVxdWVzdC5IZWFkZXJzLkxvY2F0aW9uKX0sCiAgICAgICAgIkRvbWFpbiI6ICJodHRwOi8vaHR0cGJpbi5vcmciLAogICAgICAgICJSZXNvdXJjZSI6ICIvaGVhZGVycyIsCiAgICAgICAgIkZvcm1EYXRhIjoge30KICAgIH07CiAgICByYXdsb2coIi0tLSBiZWZvcmUgZ2V0IHRvIHVwc3RyZWFtIC0tLSIpCiAgICByZXNwb25zZSA9IFR5a01ha2VIdHRwUmVxdWVzdChKU09OLnN0cmluZ2lmeShuZXdSZXF1ZXN0KSk7CiAgICByYXdsb2coIi0tLSBBZnRlciBnZXQgdG8gdXBzdHJlYW0gLS0tIikKICAgIGxvZygncmVzcG9uc2UgdHlwZTogJyArIHR5cGVvZiByZXNwb25zZSk7CiAgICBsb2coJ3Jlc3BvbnNlOiAnICsgcmVzcG9uc2UpOwogICAgdXNhYmxlUmVzcG9uc2UgPSBKU09OLnBhcnNlKHJlc3BvbnNlKTsKICAgIHZhciBib2R5T2JqZWN0ID0gSlNPTi5wYXJzZSh1c2FibGVSZXNwb25zZS5Cb2R5KTsKICAgIAogICAgdmFyIHJlc3BvbnNlT2JqZWN0ID0gewogICAgICAgIC8vQm9keTogIlRISVMgSVMgQSAgVklSVFVBTCBSRVNQT05TRSIsCiAgICAgICAgQm9keTogInlvIHlvIiwKICAgICAgICBIZWFkZXJzOiB7CiAgICAgICAgICAgICJ0ZXN0IjogInZpcnR1YWwiLAogICAgICAgICAgICAidGVzdC0yIjogInZpcnR1YWwiLAogICAgICAgICAgICAibG9jYXRpb24iIDogYm9keU9iamVjdC5oZWFkZXJzLkxvY2F0aW9uCiAgICAgICAgfSwKICAgICAgICBDb2RlOiB1c2FibGVSZXNwb25zZS5Db2RlCiAgICB9CiAgICAKICAgIHJhd2xvZygiVmlydHVhbCBUZXN0IGVuZGVkIikKICAgIHJldHVybiBUeWtKc1Jlc3BvbnNlKHJlc3BvbnNlT2JqZWN0LCBzZXNzaW9uLm1ldGFfZGF0YSkgICAKfQ==", | |
"path": "/headers", | |
"method": "GET", | |
"use_session": false | |
} | |
] | |
}, | |
"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": "/testvirtualendpoint2/", | |
"target_url": "http://localhost:8000/", | |
"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": 60, | |
"enable_cache": true, | |
"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": [], | |
"CORS": { | |
"enable": false, | |
"allowed_origins": [], | |
"allowed_methods": [], | |
"allowed_headers": [], | |
"exposed_headers": [], | |
"allow_credentials": false, | |
"max_age": 24, | |
"options_passthrough": false, | |
"debug": false | |
}, | |
"domain": "", | |
"do_not_track": false, | |
"tags": [], | |
"enable_context_vars": false, | |
"config_data": { | |
"bar": { | |
"y": 3 | |
}, | |
"foo": 4 | |
}, | |
"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