github.com/avenga/couper@v1.12.2/server/testdata/integration/endpoint_eval/06_couper.hcl (about)

     1  server "api" {
     2    api {
     3      endpoint "/" {
     4        proxy {
     5          backend "anything" {
     6            path = "/zzz"
     7          }
     8        }
     9  
    10        add_query_params = {
    11          ae = "ae"
    12        }
    13      }
    14    }
    15  }
    16  
    17  definitions {
    18    # backend origin within a definition block gets replaced with the integration test "anything" server.
    19    backend "anything" {
    20      path = "/xxx"
    21      origin = env.COUPER_TEST_BACKEND_ADDR
    22  
    23      add_query_params = {
    24        def = "def"
    25      }
    26    }
    27  }