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

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

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

public interface StatusReportResource {

    String STATUS_REPORT = ExternalApi.BASE_PATH + "/statusReport";
    String DOSSIER_ID = "dossierId";

    String DOSSIER_ID_PATH_VARIABLE = "/{" + DOSSIER_ID + "}";


    @GetMapping(value = STATUS_REPORT + DOSSIER_ID_PATH_VARIABLE)
    @Operation(summary = "Generate status report for dossier", description = "None")
    @ApiResponses(value = {@ApiResponse(responseCode = "200", description = "Status report was generated.")})
    ResponseEntity<?> generateStatusReport(@PathVariable(DOSSIER_ID) String dossierId);

}
