[PR #4876] [MERGED] Add support for search by uid #17531

Closed
opened 2025-11-02 13:53:44 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4876
Author: @zeripath
Created: 9/5/2018
Status: Merged
Merged: 10/18/2018
Merged by: @lunny

Base: masterHead: search-by-uid


📝 Commits (4)

  • 2c355e1 Add support for search by uid
  • d330788 Merge branch 'master' into search-by-uid
  • 515b3e3 Merge branch 'master' into search-by-uid
  • e489bb1 Merge branch 'master' into search-by-uid

📊 Changes

3 files changed (+17 additions, -0 deletions)

View changed files

📝 models/user.go (+6 -0)
📝 routers/api/v1/user/user.go (+5 -0)
📝 templates/swagger/v1_json.tmpl (+6 -0)

📄 Description

At the moment there is no way to search for users by their ID using the API. Gitlab does this by overloading the /users/{username} API routes to allow searching with user ID. Rather than go that route this pull request adds a uid parameter to the /users/search API and allows searching by user ID.


🔄 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/4876 **Author:** [@zeripath](https://github.com/zeripath) **Created:** 9/5/2018 **Status:** ✅ Merged **Merged:** 10/18/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `search-by-uid` --- ### 📝 Commits (4) - [`2c355e1`](https://github.com/go-gitea/gitea/commit/2c355e1316b1e194440a27eaba3069b114f1523f) Add support for search by uid - [`d330788`](https://github.com/go-gitea/gitea/commit/d330788ed9f263b121bef8ae6a020d3d63292772) Merge branch 'master' into search-by-uid - [`515b3e3`](https://github.com/go-gitea/gitea/commit/515b3e3eec832bd9380d2ee0dcabd441c473b9db) Merge branch 'master' into search-by-uid - [`e489bb1`](https://github.com/go-gitea/gitea/commit/e489bb1382071845b8f2a947ff31dd314910491d) Merge branch 'master' into search-by-uid ### 📊 Changes **3 files changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `models/user.go` (+6 -0) 📝 `routers/api/v1/user/user.go` (+5 -0) 📝 `templates/swagger/v1_json.tmpl` (+6 -0) </details> ### 📄 Description At the moment there is no way to search for users by their ID using the API. Gitlab does this by overloading the /users/{username} API routes to allow searching with user ID. Rather than go that route this pull request adds a uid parameter to the /users/search API and allows searching by user ID. --- <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 13:53:44 -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#17531