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

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

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

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