github.com/dbernstein1/tyk@v2.9.0-beta9-dl-apic+incompatible/apps/coprocess_grpc_app_sample.json (about)

     1  {
     2      "name": "Tyk Test API (Coprocess + gRPC)",
     3      "api_id": "6",
     4      "org_id": "default",
     5      "definition": {
     6          "location": "header",
     7          "key": "version"
     8      },
     9      "auth": {
    10          "auth_header_name": "authorization"
    11      },
    12      "use_keyless": false,
    13      "version_data": {
    14          "not_versioned": true,
    15          "versions": {
    16              "Default": {
    17                  "name": "Default",
    18                  "expires": "3000-01-02 15:04",
    19                  "use_extended_paths": true,
    20                  "extended_paths": {
    21                      "ignored": [],
    22                      "white_list": [],
    23                      "black_list": []
    24                  }
    25              }
    26          }
    27      },
    28      "proxy": {
    29          "listen_path": "/grpc/",
    30          "target_url": "http://httpbin.org",
    31          "strip_listen_path": true
    32      },
    33      "custom_middleware": {
    34        "pre": [
    35          {
    36            "name": "MyPreMiddleware",
    37            "require_session": false
    38          }
    39        ],
    40        "id_extractor": {
    41          "extract_from": "header",
    42          "extract_with": "value",
    43          "extractor_config": {
    44            "header_name": "Authorization"
    45          }
    46        },
    47        "driver": "grpc"
    48      },
    49      "event_handlers": {
    50        "events": {
    51          "AuthFailure": [
    52            {
    53              "handler_name": "cp_dynamic_handler",
    54              "handler_meta": {
    55                "name": "my_handler"
    56              }
    57            }
    58          ]
    59        }
    60      },
    61      "enable_batch_request_support": true
    62  }