Revize 7bf2464a
Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)
backend/src/main/java/cz/zcu/kiv/backendapi/path/PathController.java | ||
---|---|---|
1 | 1 |
package cz.zcu.kiv.backendapi.path; |
2 | 2 |
|
3 | 3 |
import cz.zcu.kiv.backendapi.catalog.ICatalogItemService; |
4 |
import io.swagger.v3.oas.annotations.Operation; |
|
4 | 5 |
import lombok.RequiredArgsConstructor; |
5 | 6 |
import org.springframework.web.bind.annotation.GetMapping; |
6 | 7 |
import org.springframework.web.bind.annotation.RequestBody; |
... | ... | |
27 | 28 |
* @return path DTO with highlighted text and found catalog items |
28 | 29 |
*/ |
29 | 30 |
@GetMapping("") |
31 |
@Operation(summary = "returns path with highlighted text and found catalog items based on given text") |
|
30 | 32 |
public PathDto getPath(@RequestBody PathDto pathDto) { |
31 | 33 |
return catalogItemService.getPath(pathDto.getText()); |
32 | 34 |
} |
Také k dispozici: Unified diff
Added controller and some tests for external catalog
re #9624