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

io.github.zanella.nomad.v1.allocations.AllocationsApi Maven / Gradle / Ivy

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