package ru.somecompany.external;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import ru.somecompany.domain.CompanyResponse;

import java.util.UUID;

@FeignClient(name = "company", url = "${app.feign.company-url}")
public interface CompanyClient {

    @GetMapping(value = "/api/v1/company/{companyId}")
    CompanyResponse getCompany(@PathVariable UUID companyId);
}
