Script Tools
EasyApi provides several built-in tools for use in Groovy configuration rules.
Context Tools
| Tool | Alias | Description |
|---|---|---|
| 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
| Tool | Alias | Description |
|---|---|---|
| tool | T | General utilities (string, JSON, time, etc.) |
| regex | RE | Regular expression utilities |
| logger | LOG | Logging |
| helper | H | Class lookup and link resolution |
| config | C | Read configuration values |
| runtime | R | Project and module metadata |
Storage Tools
| Tool | Alias | Description |
|---|---|---|
| localStorage | — | Persistent key-value storage |
| session | S | Session-scoped key-value storage |
Network Tools
| Tool | Alias | Description |
|---|---|---|
| httpClient | — | HTTP client for making requests |
| httpClient.request | — | Request object |
| httpClient.response | — | Response object |
File Tools
| Tool | Alias | Description |
|---|---|---|
| files | F | File operations |