Class ServiceDiscoveryRestEndpoint
java.lang.Object
io.vertx.servicediscovery.rest.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
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceDiscoveryRestEndpointcreate(Router router, ServiceDiscovery discovery) Creates the REST endpoint using the default root (/discovery).static ServiceDiscoveryRestEndpointcreate(Router router, ServiceDiscovery discovery, String root) Creates the REST endpoint using the given root.
-
Field Details
-
DEFAULT_ROOT
- See Also:
-
-
Method Details
-
create
Creates the REST endpoint using the default root (/discovery).- Parameters:
router- the vert.x web routerdiscovery- the service discovery instance- Returns:
- the created endpoint
-
create
public static ServiceDiscoveryRestEndpoint create(Router router, ServiceDiscovery discovery, String root) Creates the REST endpoint using the given root.- Parameters:
router- the vert.x web routerdiscovery- the service discovery instanceroot- the endpoint path (root)- Returns:
- the created endpoint
-