package com.coder.purchase.order.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.coder.purchase.order.dto.AssetTypeDTO;


@FeignClient(name = "asset-type-microservice", url = "http://localhost:8306")
public interface AssetTypeServiceClient {

    @GetMapping("/asset_type_service/single/{code}/{year}/{number}")
    AssetTypeDTO getAssetTypeById(
            @PathVariable("code") String code,
            @PathVariable("year") String year,
            @PathVariable("number") String number
    );
}
