@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(produces = APIDoc.PROD_CONSU_JSON, summary = APIDoc.SUM_LIST_AREAS) @RequestMapping(value = "/areas") public HttpEntity listAreas() { return new ResponseEntity(service.listAreas(), HttpStatus.OK); }