@ApiMethod( summary = APIDoc.SUM_RESURCES_KNOWLEDGE, responsestatuscode = APIDoc.STATUS_LIST_KNOWLEDGE_RESOURCE) @RequestMapping(value = "/knowledge/resources", method = RequestMethod.GET) public HttpEntity getKnowledgesAndAreas() { ResourcesKnowledge resource = new ResourcesKnowledge(); resource.areas = service.listAreas(); resource.subjects = service.listSubjects(); return new ResponseEntity(resource, HttpStatus.OK); }
@ApiMethod(summary = APIDoc.SUM_LIST_SUBJECTS) @RequestMapping(value = "/subjects", produces = "application/json") public HttpEntity getSubjects() { return new ResponseEntity(service.listSubjects(), HttpStatus.OK); }