list

@GetMapping(headers = "token")
open fun <T> list(@RequestHeader(value = "token") token: String, @PathVariable(value = "user_id") userId: String, @RequestParam(name = "owned_only") ownedOnly: Boolean): T

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>