Manifest

#data/proxy-example.yaml
version: v1.2
type: Proxy
rules:
  - when: body.id > 1           # 1
    request:                    # 2
      path: /api/greetings/**   # 2.1
      method: GET               # 2.2
      relative: true            # 2.3
    proxy-name: local           # 3

Description

  • when - conditional statement. Allowing you to determine whether a proxy will be available

  • request - request matching setup

    • path - endpoint path

    • method - endpoint method, could be omitted

    • relative - location of the file relative to the root of the content

  • proxy-name - name of proxy from config

This feature was added in order to be able to pass traffic through the app. If you want to see how to set up path mapping, see next documentation for spring request matching:

Last updated