I am trying to update mattermost api fom v3 version to v4 version .
We were using “Get all teams” Endpoint -https://your-mattermost-url.com/api/v3/teams/all , this used to give us all the teams which user has access to , i am unable to find the equivalent endpoint in v4 version , however i tried using “Get teams” api in v4 version having endpoint –https://your-mattermost-url.com/api/v4/teams , it does not give all the open teams the user has subscribed to(i found that the subscribed teams are open team through v3 api)
Also , tried using "Get a team " v4 version , but instead of providing details of the team id provided ,it is giving the details of all the teams (response is same as Get all teams ).
Please note we have created a service account for our application and reading the data through that account and interested in reading public data only.
Can you please suggest in case we are missing something here.
Any help will be much appreciated !!