forgejo/vendor/code.gitea.io/sdk/gitea
Harshit Bansal 5ac6da3c41 api: Add missing GET teams endpoints (#5382)
* api: Add an endpoint to list a particular member of team.

* models: Rename `GetUserTeams()` to `GetUserOrgTeams()` in `org_team` 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.

* models: Add `GetUserTeams()`.

Returns all the teams that a user belongs to.

* api: Add an endpoint for GET '/user/teams'.

A GET request to this endpoint lists all the teams that a user
belongs to.
2019-01-16 19:39:50 -05:00
..
admin_org.go
admin_repo.go
admin_user.go
attachment.go
doc.go
fork.go
gitea.go
hook.go api: Add missing GET teams endpoints (#5382) 2019-01-16 19:39:50 -05:00
issue.go
issue_comment.go
issue_label.go
issue_milestone.go
issue_tracked_time.go
lfs_lock.go
miscellaneous.go
org.go
org_member.go
org_team.go api: Add missing GET teams endpoints (#5382) 2019-01-16 19:39:50 -05:00
pull.go
release.go api: Add missing GET teams endpoints (#5382) 2019-01-16 19:39:50 -05:00
repo.go
repo_branch.go
repo_collaborator.go
repo_file.go
repo_key.go
repo_refs.go
repo_tree.go
repo_watch.go
status.go
user.go
user_app.go
user_email.go
user_follow.go
user_gpgkey.go
user_key.go
user_search.go
utils.go