[PR #5382] [MERGED] api: Add missing GET teams endpoints #17774

Closed
opened 2025-11-02 15:40:49 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5382
Author: @HarshitOnGitHub
Created: 11/22/2018
Status: Merged
Merged: 1/17/2019
Merged by: @techknowlogick

Base: masterHead: Issue_1821


📝 Commits (6)

  • 15c2564 api: Add an endpoint to list a particular member of team.
  • fdf1d98 models: Rename GetUserTeams() to GetUserOrgTeams() in org_team model.
  • c0211a1 models: Add GetUserTeams().
  • f530a7f api: Add an endpoint for GET '/user/teams'.
  • 40f2ba0 Merge branch 'master' into Issue_1821
  • 3ca262f Update team.go

📊 Changes

10 files changed (+160 additions, -12 deletions)

View changed files

📝 Gopkg.lock (+2 -2)
📝 models/org.go (+1 -1)
📝 models/org_team.go (+16 -4)
📝 models/org_team_test.go (+15 -1)
📝 routers/api/v1/api.go (+3 -0)
📝 routers/api/v1/org/team.go (+65 -0)
📝 templates/swagger/v1_json.tmpl (+52 -0)
📝 vendor/code.gitea.io/sdk/gitea/hook.go (+1 -0)
📝 vendor/code.gitea.io/sdk/gitea/org_team.go (+4 -3)
📝 vendor/code.gitea.io/sdk/gitea/release.go (+1 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5382 **Author:** [@HarshitOnGitHub](https://github.com/HarshitOnGitHub) **Created:** 11/22/2018 **Status:** ✅ Merged **Merged:** 1/17/2019 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `Issue_1821` --- ### 📝 Commits (6) - [`15c2564`](https://github.com/go-gitea/gitea/commit/15c2564ccec1bcf2fb49099f821629d6b2531c3d) api: Add an endpoint to list a particular member of team. - [`fdf1d98`](https://github.com/go-gitea/gitea/commit/fdf1d980bdbf59c93aff248c0abeeff2d1e10c0f) models: Rename `GetUserTeams()` to `GetUserOrgTeams()` in `org_team` model. - [`c0211a1`](https://github.com/go-gitea/gitea/commit/c0211a163d1da4398686ea7d635307def3b56eb5) models: Add `GetUserTeams()`. - [`f530a7f`](https://github.com/go-gitea/gitea/commit/f530a7fa1c613cf6c2b50240c14ab4f45243dbc0) api: Add an endpoint for GET '/user/teams'. - [`40f2ba0`](https://github.com/go-gitea/gitea/commit/40f2ba0df4897551036af0d3451aca62f47096d4) Merge branch 'master' into Issue_1821 - [`3ca262f`](https://github.com/go-gitea/gitea/commit/3ca262fe19146d32d467c9842e693dd17e3c9424) Update team.go ### 📊 Changes **10 files changed** (+160 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `Gopkg.lock` (+2 -2) 📝 `models/org.go` (+1 -1) 📝 `models/org_team.go` (+16 -4) 📝 `models/org_team_test.go` (+15 -1) 📝 `routers/api/v1/api.go` (+3 -0) 📝 `routers/api/v1/org/team.go` (+65 -0) 📝 `templates/swagger/v1_json.tmpl` (+52 -0) 📝 `vendor/code.gitea.io/sdk/gitea/hook.go` (+1 -0) 📝 `vendor/code.gitea.io/sdk/gitea/org_team.go` (+4 -3) 📝 `vendor/code.gitea.io/sdk/gitea/release.go` (+1 -1) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 15:40:51 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17774