getItem

@GetMapping(headers = "token", path = "/{" + TEAM_IDENTIFIER_KEY + "}")
open fun <T> getItem(@RequestHeader(value = "token") token: String, @PathVariable(value = "user_id") userId: String, @PathVariable(value = "team_id") teamId: String): T

Method to get a team

Return

the team requested, if authorized, or the failed response message as T

Parameters

token

: the token of the user

userId

: the identifier of the user

teamId

: the identifier of the team to get