vertx / io.vertx.servicediscovery.rest / ServiceDiscoveryRestEndpoint

# ServiceDiscoveryRestEndpoint

`open class ServiceDiscoveryRestEndpoint`

Allows publishing the vert.x service discovery as a REST endpoint. It supports retrieving services, but also publish, withdraw and modify services.

Author
Clement Escoffier

### Properties

DEFAULT_ROOT | `static val DEFAULT_ROOT: String`

### Functions

create | `open static fun create(router: Router, discovery: ServiceDiscovery): ServiceDiscoveryRestEndpoint` Creates the REST endpoint using the default root (`/discovery`). `open static fun create(router: Router, discovery: ServiceDiscovery, root: String): ServiceDiscoveryRestEndpoint` Creates the REST endpoint using the given root.