vertx / io.vertx.servicediscovery.rest / ServiceDiscoveryRestEndpoint / create

create

open static fun create(router: Router, discovery: ServiceDiscovery): ServiceDiscoveryRestEndpoint

Creates the REST endpoint using the default root (/discovery).

Parameters

router - the vert.x web router

discovery - the service discovery instance

Return
the created endpoint

open static fun create(router: Router, discovery: ServiceDiscovery, root: String): ServiceDiscoveryRestEndpoint

Creates the REST endpoint using the given root.

Parameters

router - the vert.x web router

discovery - the service discovery instance

root - the endpoint path (root)

Return
the created endpoint