Manifest

#data/writer-example.yaml
version: v1.2
type: Writer
rules:
  - from: printer-example           # 1
    writer:                         # 2
      type: file                    # 2.1
      file:                         # 2.2
        path: data/${path}          # 2.2.1
        name-pattern: ${name}.yaml  # 2.2.2

Description

  • from - In this field you must specify the name of the request source

  • writer - the unit responsible for setting up the writer

    • type - writer setup, available variant are: file

    • file - file unit setup

      • path - file's location in folder structure

      • name-pattern - future file name

Units path and name-pattern allows scripting

Allowed variables:

NameTypePrepared values

path

java.lang.String

Prefixes of endpoint, except last part. Can be empty

name

java.lang.String

Endpoint itself

constants

java.utl.Map

Constants from config file

This table lists the available variables for the script

Examples:

Endpointpathname

/api/example

api

example

/1

<empty>

1

/api/v1/auth/token

api/v1/auth

token

This table explains how the endpoint will be decomposed into the corresponding variables

This feature is responsible for writing the printed request to disk, database, network, etc.

Naming

Last updated