package com.ikon.projectmanagement.api;

import java.util.List;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ikon.projectmanagement.dto.response.FxRateDto;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

@Tag(name = "Import FX Rate API", description = "API for importing FX Rate master data from Sales CRM")
@RequestMapping("/import-data/fx-rates")
public interface ImportFxRateApi {

    @Operation(summary = "Fetch all FX rates from Sales CRM and persist locally")
    @GetMapping
    ResponseEntity<List<FxRateDto>> fetchAllFxRates(@RequestHeader("Authorization") String accessToken);
}
