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.GradeResponseDto;

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

@Tag(name = "Import Grade API", description = "API for importing Grade master data from Sales CRM")
@RequestMapping("/import-data/grades")
public interface ImportGradeApi {

    @Operation(summary = "Fetch all grades from Sales CRM and persist locally")
    @GetMapping
    ResponseEntity<List<GradeResponseDto>> fetchAllGrades(@RequestHeader("Authorization") String accessToken);
}
