Skip to content

Script Tools

EasyApi provides several built-in tools for use in Groovy configuration rules.

Context Tools

ToolAliasDescription
itCurrent PSI element context (class/method/field/param)
apiAPI endpoint context (export rules only)
fieldContextField path context (field rules only)

Utility Tools

ToolAliasDescription
toolTGeneral utilities (string, JSON, time, etc.)
regexRERegular expression utilities
loggerLOGLogging
helperHClass lookup and link resolution
configCRead configuration values
runtimeRProject and module metadata

Storage Tools

ToolAliasDescription
localStoragePersistent key-value storage
sessionSSession-scoped key-value storage

Network Tools

ToolAliasDescription
httpClientHTTP client for making requests
httpClient.requestRequest object
httpClient.responseResponse object

File Tools

ToolAliasDescription
filesFFile operations

Released under the Apache-2.0 License.