package dev.lions.unionflow.client.service;

import dev.lions.unionflow.server.api.dto.suggestion.request.*;
import dev.lions.unionflow.server.api.dto.suggestion.response.*;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders;
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.MediaType;
import java.util.List;
import java.util.Map;
import java.util.UUID;

/**
 * Service REST client pour la gestion des suggestions
 * 
 * @author UnionFlow Team
 * @version 1.0
 */
@RegisterRestClient(configKey = "unionflow-api")
@RegisterClientHeaders(dev.lions.unionflow.client.security.AuthHeaderFactory.class)
@Path("/api/suggestions")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public interface SuggestionService {
    
    @GET
    List<SuggestionResponse> listerSuggestions();
    
    @POST
    SuggestionResponse creerSuggestion(CreateSuggestionRequest request);
    
    @POST
    @Path("/{id}/voter")
    void voterPourSuggestion(@PathParam("id") UUID id, @QueryParam("utilisateurId") UUID utilisateurId);
    
    @GET
    @Path("/statistiques")
    Map<String, Object> obtenirStatistiques();
}

