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,     @RequestParam(name = "page", defaultValue = "0", required = false) page: Int,     @RequestParam(name = "pageSize", defaultValue = "10", required = false) pageSize: Int,     @RequestParam(name = "keywords", defaultValue = "", required = false) keywords: Set<String>): T

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

page

The page requested

pageSize

The size of the items to insert in the page

keywords

The keywords used to filter the query to retrieve the items

<T>

the Team type