publicinterfaceHorseService{/** * @param id of the horse to find. * @return the horse with the specified id. * @throws RuntimeException will be thrown if something goes wrong during data processing. * @throws NotFoundException will be thrown if the horse could not be found in the system. */HorsefindOneById(Longid);/** * @param horse to add. * @return the horse with the specified id. * @throws RuntimeException will be thrown if something goes wrong during data processing. * @throws NotFoundException will be thrown if the horse could not be found in the system. */HorseaddHorse(Horsehorse);
/** * @param img image to upload * @throws IOException will be thrown if something goes wrong with saving the file */voidsaveImage(MultipartFileimg)throwsIOException;