createOwnedOnlyQuery

private fun createOwnedOnlyQuery(ownedOnly: Boolean): String

Function to assemble the query to manage the owned only query

Return

an endpoint to make the request as String

Parameters

ownedOnly

: whether to get only the teams where the user is the owner