Class ServiceDiscoveryRestEndpoint


  • public class ServiceDiscoveryRestEndpoint
    extends Object
    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
    • Method Detail

      • create

        public static ServiceDiscoveryRestEndpoint create​(Router router,
                                                          ServiceDiscovery discovery)
        Creates the REST endpoint using the default root (/discovery).
        Parameters:
        router - the vert.x web router
        discovery - 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 router
        discovery - the service discovery instance
        root - the endpoint path (root)
        Returns:
        the created endpoint