backend returns views
This commit is contained in:
parent
d4c442c64a
commit
bdfa2e6389
@ -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),
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user