All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.zanella.nomad.v1.nodes.NodesApi Maven / Gradle / Ivy

package io.github.zanella.nomad.v1.nodes;

import io.github.zanella.nomad.v1.nodes.models.NodeSummary;

import java.util.List;

import feign.Param;
import feign.RequestLine;

public interface NodesApi {
    String nodesUrl = "/v1/nodes";

    @RequestLine("GET " + nodesUrl)
    List getNodes();

    String nodesForRegionUrl = nodesUrl + "?region={region}";

    @RequestLine("GET " + nodesForRegionUrl)
    List getNodesForRegion(@Param("region") String region);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy