Manifest

#data/recorder-example.yaml
version: v1.3
type: OutboundRecorder
name: recorder-example
rules:
  - request:                      # 1.
      path: /api/**               # 1.1
      method: GET                 # 1.2
      headers:                    # 1.3
        content-type: text/plain  # 1.3.1
        host: example.com         # 1.3.2
      relative: GET               # 1.4
    recorder:                     # 2.
      storage:                    # 2.1
        type: memory              # 2.1.1
      expiration-policy:          # 2.2
        type: access              # 2.2.1

Description

  • request - like other components of the request block, the difference is in the new field headers, which allows you to intercept requests with a specific header

    • path - endpoint path

    • method - endpoint method

    • headers - list of expected headers

    • relative - relative to current folder path, for path construction

  • recorder - the unit responsible for setting up the recorder

    • storage - storage setup

      • type - only memory and guava storage is available at the moment

    • expiration-policy - expiration policy setup

      • type - available variant are: access, time, size

This feature allows you to save outgoing requests for later use.

Last updated