Class HerdController
java.lang.Object
edu.ucsb.cs156.happiercows.controllers.ApiController
edu.ucsb.cs156.happiercows.controllers.HerdController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHerdsByGameIdAndUserId(Long gameId, Long userId) getHerdsForCurrentUser(Long gameId) The userId is always taken from the logged-in user, never from a request parameter, so a farmer can only ever read their own herds.Methods inherited from class ApiController
genericMessage, getCurrentUser, handleBadRequest, handleForbidden, handleGenericException
-
Constructor Details
-
HerdController
public HerdController()
-
-
Method Details
-
getHerdsByGameIdAndUserId
-
getHerdsForCurrentUser
-