diff options
Diffstat (limited to 'central/src/main/java/moe/yuuta/dn42peering/asn/IASNHttpService.java')
-rw-r--r-- | central/src/main/java/moe/yuuta/dn42peering/asn/IASNHttpService.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/central/src/main/java/moe/yuuta/dn42peering/asn/IASNHttpService.java b/central/src/main/java/moe/yuuta/dn42peering/asn/IASNHttpService.java new file mode 100644 index 0000000..aaa6913 --- /dev/null +++ b/central/src/main/java/moe/yuuta/dn42peering/asn/IASNHttpService.java @@ -0,0 +1,22 @@ +package moe.yuuta.dn42peering.asn; + +import io.vertx.core.AsyncResult; +import io.vertx.core.Handler; +import io.vertx.core.json.JsonObject; +import io.vertx.ext.web.api.service.ServiceRequest; +import io.vertx.ext.web.api.service.ServiceResponse; +import io.vertx.ext.web.api.service.WebApiServiceGen; + +import javax.annotation.Nonnull; + +@WebApiServiceGen +public interface IASNHttpService { + String ADDRESS = IASNHttpService.class.getName(); + + void index(@Nonnull ServiceRequest context, + @Nonnull Handler<AsyncResult<ServiceResponse>> handler); + + void register(@Nonnull JsonObject body, + @Nonnull ServiceRequest context, + @Nonnull Handler<AsyncResult<ServiceResponse>> handler); +} |