vertx-pin/zero-jet/src/main/java/cn/vertxup/jet/api/UriApi.java
package cn.vertxup.jet.api;
import io.vertx.core.json.JsonObject;
import io.vertx.mod.jet.cv.JtAddr;
import io.vertx.up.annotations.Address;
import io.vertx.up.annotations.EndPoint;
import jakarta.ws.rs.BodyParam;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
/**
* Critical routing management
* 1. Metadata Analyzing for zero-framework
* 2. Call service interface of zero to get all routing information
* 3. Update routing on `RoutingCore` in zero framework
*
* Here are futures of these uri
*
* @author <a href="http://www.origin-x.cn">Lang</a>
*/
@EndPoint
@Path("/api")
public interface UriApi {
@Path("routing/create")
@POST
@Address(JtAddr.Aeon.NEW_ROUTE)
Boolean createUri(@BodyParam JsonObject body);
}