io.yawp.repository.actions.Action Maven / Gradle / Ivy
package io.yawp.repository.actions;
import io.yawp.commons.utils.JsonUtils;
import io.yawp.repository.Feature;
/**
* Action API
*
* The Action API is used to create custom rest actions to manipulate
* or retrieve the state of a group of endpoint models.
*
* All subclasses of this base class will be scanned at the bootstrap
* of the framework.
*
* All the public methods annotated with one of the http-verb annotations
* (GET, POST, PUT, PATCH, DELETE) will be assigned to custom rest routes
* bellow the path of the parametrized endpoint model.
*
* @param The endpoint model type.
*/
public class Action extends Feature {
/**
* @deprecated use {@link Feature#to(Object)}.
*/
@Deprecated
public String json(Object object) {
return JsonUtils.to(object);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy