-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: Add missing GET teams endpoints #5382
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5382 +/- ##
==========================================
- Coverage 37.76% 37.74% -0.03%
==========================================
Files 325 325
Lines 47695 47760 +65
==========================================
+ Hits 18014 18026 +12
- Misses 27085 27138 +53
Partials 2596 2596
Continue to review full report at Codecov.
|
@lunny Just a gentle ping in case you missed github notification for my reply. :) |
@HarshitOnGitHub for compatible with github api v3, the route should be |
f2051aa
to
fdbef07
Compare
@lunny Thanks for the review! I have updated the PR according to your comments, please take a look. :) |
…model. `GetUserTeams()` sounds a bit misnomer since it actually returns the teams that user belongs to in a given organization rather than all the teams across all the organization that the user has joined.
Returns all the teams that a user belongs to.
A GET request to this endpoint lists all the teams that a user belongs to.
fdbef07
to
f530a7f
Compare
@lunny This is ready for a final review from you. |
This PR adds missing endpoints for teams as mentioned in issue #1821. I have not added endpoints for admin usage in this PR, will open a separate PR for it.
As this is my first PR to this project, I would appreciate a detailed review. Thanks! :)
Partly fixes: #1821.