public static ServiceDependencyBuilder restServiceDependency(final String url) {
        return new ServiceDependencyBuilder()
                .withUrl(url)
                .withType(ServiceDependency.TYPE_SERVICE)
                .withSubtype(ServiceDependency.SUBTYPE_REST)
                .withMethods(singletonList("GET"))
                .withMediaTypes(singletonList("application/json"));
    }
public static ServiceDependencyBuilder restServiceDependency ( final String url ) { return new ServiceDependencyBuilder ( ) . withUrl ( url ) . withType ( ServiceDependency . TYPE_SERVICE ) . withSubtype ( ServiceDependency . SUBTYPE_REST ) . withMethods ( singletonList ( "GET" ) ) . withMediaTypes ( singletonList ( "application/json" ) ) ; }
Creates a ServiceDependencyBuilder with type="service" and subtype="REST".

@param url the url or uri-template of the accessed REST service.
@return ServiceDependencyBuilder