package com.iqser.red.service.persistence.service.v1.api.external.resource;

import java.util.List;
import java.util.Set;

import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;

import com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.DossierTemplateDictionaryStats;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;

@ResponseStatus(HttpStatus.OK)
public interface DossierTemplateStatsResource {

    String DOSSIER_TEMPLATE_STATS_REST_PATH = ExternalApi.BASE_PATH + "/dossier-template-stats";


    @ResponseBody
    @ResponseStatus(value = HttpStatus.OK)
    @PostMapping(value = DOSSIER_TEMPLATE_STATS_REST_PATH, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Get stats for a specific list of Dossier Template IDs", description = "None")
    @ApiResponses(value = {@ApiResponse(responseCode = "200", description = "The Dossier Template Stats List.")})
    List<DossierTemplateDictionaryStats> getDossierTemplateStats(@RequestBody Set<String> dossierTemplateIds);

}
