Projekt

Obecné

Profil

« Předchozí | Další » 

Revize fe068d3a

Přidáno uživatelem Michal Schwob před asi 2 roky(ů)

External sources sending file fixed
re #9821

Zobrazit rozdíly:

backend/src/main/java/cz/zcu/kiv/backendapi/external/ExternalCatalogController.java
3 3
import io.swagger.v3.oas.annotations.Operation;
4 4
import lombok.RequiredArgsConstructor;
5 5
import org.springframework.http.HttpStatus;
6
import org.springframework.http.MediaType;
6 7
import org.springframework.http.ResponseEntity;
7 8
import org.springframework.web.bind.annotation.*;
8 9
import org.springframework.web.multipart.MultipartFile;
......
27 28
     *
28 29
     * @param file file - should contain CIGS catalog
29 30
     */
30
    @PostMapping("")
31
    @PostMapping(value = "", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
31 32
    @Operation(summary = "updates external catalog")
32 33
    public void updateCatalog(@RequestParam("file") MultipartFile file) {
33 34
        externalCatalogService.updateCatalog(file);

Také k dispozici: Unified diff