Configuration
EasyYapi provides a flexible configuration system to customize API documentation generation behavior.
Out of the Box
EasyApi understands standard HTTP frameworks (Spring MVC, WebFlux, JAX-RS, Feign) out of the box — most projects need no custom rules. For custom framework behaviour the scanner can't see (e.g. a jakarta.servlet.Filter that requires a header, or a ResponseBodyAdvice that wraps every response in an envelope), use the built-in AI Assistant or the external skill to detect it and generate the rule. See Rule Authoring for the guide.
Ways to Write Rules
EasyYapi 3.x offers two ways to author rules. Both write to .easyapi/*.rules files. See Rule Authoring for the full guide.
| Way | Best for |
|---|---|
| Built-in AI Assistant | Natural-language rule creation in Settings → Rules → Chat / Magic |
External easy-yapi-assistant skill | Driving rule authoring from an external AI tool |
Configuration Methods
Local Config File
Create a .easy.api.config file in your project root directory — the folder you opened in the IDE (legacy, still supported). New projects should use the .easyapi/ folder model. Rule files are resolved from the project base path only; there is no per-module config tier.
# Ignore specific fields
field.ignore=groovy:it.hasAnn("com.fasterxml.jackson.annotation.JsonIgnore")
# Type conversion
json.rule.convert=groovy:it.type().name()=="java.util.Date" => java.lang.StringSee Local Config File.
Remote Config File
Configure a remote URL to fetch configuration:
remote.url=http://your-config-server.com/easy-api.configSee Remote Config File.
IDE Settings
Configure EasyYapi global settings in the IDE.
See IDE Settings.
Configuration Content
| Category | Description |
|---|---|
| Config Rules | Rules for customizing API documentation generation |
| Callbacks & Events | Execute custom logic at specific events |
| Script Tools | Tools available in Groovy scripts |
| Advanced | Advanced custom configuration |
Configuration Priority
- Project rules —
<project>/.easyapi/+ legacy.easy.api.config*walked up from the project root (highest priority) - Extension rules — bundled framework presets (Spring, Jackson, Validation, …)
- Remote config — URLs from
remote.url - Global rules —
~/.easyapi/(lowest priority)
Features and channel settings
Use IDE Settings > Features to control framework recognizers, export channels, and field-format channels. Experimental Hoppscotch and OpenAPI channels are disabled by default. Most of these extension points can be turned off when they are not relevant to a project; the General tab also controls API scanning and editor behavior. Their channel-specific settings are available from the EasyApi settings tree.