assembleTeamsEndpointPath
Function to assemble the endpoint to make the request to the teams controller
Return
an endpoint to make the request as String
Parameters
subEndpoint
: the sub-endpoint path of the url
query
: the query to attach to the request