Package io.github.og4dev.advice


package io.github.og4dev.advice
Provides global advisory components for the OG4Dev Spring API Response Library.

This package contains Spring RestControllerAdvice implementations that intercept and modify HTTP responses and requests globally across the application.

The primary component within this package is the GlobalResponseWrapper. It facilitates the seamless, opt-in encapsulation of standard controller return values into the standardized ApiResponse format, significantly reducing boilerplate code.

Integration & Usage

Components in this package are automatically registered via Spring Boot's auto-configuration mechanism (ApiResponseAutoConfiguration). Developers do not need to manually scan, import, or configure this package.

To activate the response wrapping capabilities provided by this package, simply annotate target REST controllers or specific methods with the @AutoResponse annotation.

Since:
1.4.0
Version:
1.4.0
Author:
Pasindu OG
See Also: