list
@GetMapping(headers = "token")
Method to get a list of collections
Return
the collections 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 collections where the user is the owner
<T>
the LinksCollection type