Revize 0d303b8f
Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)
backend/src/main/java/cz/zcu/kiv/backendapi/external/ExternalCatalogController.java | ||
---|---|---|
5 | 5 |
import org.springframework.http.HttpStatus; |
6 | 6 |
import org.springframework.http.ResponseEntity; |
7 | 7 |
import org.springframework.web.bind.annotation.*; |
8 |
import org.springframework.web.multipart.MultipartFile; |
|
8 | 9 |
|
9 | 10 |
import java.util.List; |
10 | 11 |
|
... | ... | |
23 | 24 |
|
24 | 25 |
@PostMapping("") |
25 | 26 |
@Operation(summary = "updates external catalog") |
26 |
public void updateCatalog() { |
|
27 |
externalCatalogService.updateCatalog(); |
|
27 |
public void updateCatalog(@RequestParam("file") MultipartFile file) {
|
|
28 |
externalCatalogService.updateCatalog(file);
|
|
28 | 29 |
} |
29 | 30 |
|
30 | 31 |
/** |
Také k dispozici: Unified diff
Added two external catalog items sources
re #9752