backend returns views
This commit is contained in:
		@ -141,7 +141,7 @@ public class MockController {
 | 
			
		||||
            Researcher output = researchesService.saveResearcher(jojoResearcherAccount);
 | 
			
		||||
 | 
			
		||||
            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");
 | 
			
		||||
 | 
			
		||||
            Research restrictedResearch = new Research("just another Name", output, new Date(1111111111),
 | 
			
		||||
 | 
			
		||||
@ -229,7 +229,7 @@ public class ResearchController {
 | 
			
		||||
 | 
			
		||||
    ///////
 | 
			
		||||
    //views part
 | 
			
		||||
    @PostMapping("/addView/{url}")
 | 
			
		||||
    @PostMapping("/addview/{url}")
 | 
			
		||||
    public ResponseEntity<ResearchDTO> addView(@PathVariable String url){
 | 
			
		||||
        Research research = researchesServ.getResearchByUrl(url);
 | 
			
		||||
        if (research ==null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user