1
0
forked from PGL/Clyde

backend returns views

This commit is contained in:
Bartha Maxime 2024-04-17 12:41:36 +02:00
parent d4c442c64a
commit bdfa2e6389
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ public class MockController {
Researcher output = researchesService.saveResearcher(jojoResearcherAccount); Researcher output = researchesService.saveResearcher(jojoResearcherAccount);
Research jojoResearch = new Research("Graphs : Advanced Search Algorithms", output, new Date(0), Research jojoResearch = new Research("Graphs : Advanced Search Algorithms", output, new Date(0),
PaperType.Article, "here.pdf", null, "english", PaperType.Article, "test.pdf", null, "english",
Access.OpenSource, "IT", "This Article's title speaks for itself \n We'll discuss about advanced Graph search Algorithms"); Access.OpenSource, "IT", "This Article's title speaks for itself \n We'll discuss about advanced Graph search Algorithms");
Research restrictedResearch = new Research("just another Name", output, new Date(1111111111), Research restrictedResearch = new Research("just another Name", output, new Date(1111111111),

View File

@ -229,7 +229,7 @@ public class ResearchController {
/////// ///////
//views part //views part
@PostMapping("/addView/{url}") @PostMapping("/addview/{url}")
public ResponseEntity<ResearchDTO> addView(@PathVariable String url){ public ResponseEntity<ResearchDTO> addView(@PathVariable String url){
Research research = researchesServ.getResearchByUrl(url); Research research = researchesServ.getResearchByUrl(url);
if (research ==null) return new ResponseEntity<>(HttpStatus.NOT_FOUND); if (research ==null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);