list
@GetMapping(headers = "token")
Method to get a list of teams
Return
the teams list, if authorized, else failed message as T
Parameters
userId
: the identifier of the user
token
: the token of the user
ownedOnly
: whether to get only the teams where the user is the owner
<T>
the Team type