Skip to content

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.

WayBest for
Built-in AI AssistantNatural-language rule creation in Settings → Rules → Chat / Magic
External easy-yapi-assistant skillDriving 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.

properties
# 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.String

See Local Config File.

Remote Config File ​

Configure remote config URLs in Settings → EasyApi → Rules → Remote. You can also pull remote configs from within a rule file using the ###include directive.

See Remote Config File.

IDE Settings ​

Configure EasyYapi global settings in the IDE.

See IDE Settings.

Configuration Content ​

CategoryDescription
Config RulesRules for customizing API documentation generation
Callbacks & EventsExecute custom logic at specific events
Script ToolsTools available in Groovy scripts
AdvancedAdvanced custom configuration

Configuration Priority ​

  1. Project rules — <project>/.easyapi/ + legacy .easy.api.config* walked up from the project root (highest priority)
  2. Extension rules — bundled framework presets (Spring, Jackson, Validation, …)
  3. Remote config — URLs configured in Settings → Rules → Remote
  4. 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, OpenAPI, and ApiPost channels are disabled by default. Most of these extension points can be turned off when they are not relevant to a project; the Features tab also controls API scanning (with automatic and concurrent options) and editor integration, all of which take effect immediately without an IDE restart. Their channel-specific settings are available from the EasyApi settings tree.

Released under the Apache-2.0 License.