oto/assets/yaml/sample/11_utils.yaml

31 lines
601 B
YAML

---
# [샘플] 유틸리티
property:
workspace: /path/to/project
apiUrl: "https://api.example.com/v1/users?active=true#top"
pipeline:
id: main
workflow:
- exe: url-parse
- exe: delay-short
commands:
# URL 파싱
- command: URLInfo
id: url-parse
param:
url: <!property.apiUrl>
setScheme: <@property.urlScheme>
setHost: <@property.urlHost>
setPort: <@property.urlPort>
setPath: <@property.urlPath>
setQuery: <@property.urlQuery>
setFragment: <@property.urlFragment>
# 지연 (millisecond)
- command: Delay
id: delay-short
param:
millisecond: 500