@ActionMapping#
com.palmyralabs.palmyra.base.annotations.ActionMapping
Binds a handler component to one or more action names/URLs — used for non-CRUD RPC-style endpoints. Target: TYPE. Retention: RUNTIME.
Attributes#
| Attribute | Signature |
|---|---|
value |
String[] value() — URL path(s); alias for path |
path |
String[] path() default {} — alias for value |
action |
String[] action() default {} — action name(s) |
Example#
@Component
@ActionMapping(value = "/v1/admin/user", action = {"reset-password", "enable", "disable"})
public class UserAdminActions {
// ...
}