/** GET /specialitys -> get all the specialitys. */ @RequestMapping( value = "/specialitys", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public List<Speciality> getAllSpecialitys() { log.debug("REST request to get all Specialitys"); return specialityRepository.findAll(); }