Skip to content

Script Tools ​

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

Context Tools ​

ToolAliasDescription
it—Current PSI element context (class/method/field/param)
api—API endpoint context (export rules only)
fieldContext—Field 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
localStorage—Persistent key-value storage
sessionSSession-scoped key-value storage

Network Tools ​

ToolAliasDescription
httpClient—HTTP client for making requests
httpClient.request—Request object
httpClient.response—Response object

File Tools ​

ToolAliasDescription
filesFFile operations

Released under the Apache-2.0 License.