package jnpf.lims.api;
|
|
import jnpf.base.ActionResult;
|
import jnpf.lims.api.model.ElnSourceReference;
|
import jnpf.utils.LimsFeignName;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import java.util.List;
|
|
@FeignClient(name = LimsFeignName.LIMS_SERVER_NAME, contextId = "elnSourceCatalogApi")
|
public interface ElnSourceCatalogApi {
|
@GetMapping("/eln/sources/references")
|
ActionResult<List<ElnSourceReference>> references();
|
|
@GetMapping("/eln/sources/references/{code}/{revision}")
|
ActionResult<ElnSourceReference> reference(@PathVariable("code") String code, @PathVariable("revision") int revision);
|
}
|