What's the better option HEAD or GET? I need to return total count of entities. I've seen a lot of opinions, but not sure what is the most effective. Also not sure if it does make sense to return an Int in the response body or not.
Can HEAD method expect parameters? I ask because the count may be extended in the future with some additional parameters, such as return count of entities which matches the condition I.e. user can pass parameter startsWith etc.