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

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

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

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