io.github.zanella.nomad.v1.allocations.AllocationsApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nomad-api Show documentation
Show all versions of nomad-api Show documentation
Java client for Nomad's HTTP API
The newest version!
package io.github.zanella.nomad.v1.allocations;
import io.github.zanella.nomad.v1.allocations.models.Allocation;
import java.util.List;
import feign.Param;
import feign.RequestLine;
public interface AllocationsApi {
String allocationsUrl = "/v1/allocations";
@RequestLine("GET " + allocationsUrl)
List getAllocations();
String allocationsForRegionUrl = allocationsUrl + "?region={region}";
@RequestLine("GET " + allocationsForRegionUrl)
List getAllocationsForRegion(@Param("region") String region);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy