[PR #100] [MERGED] API endpoints for stars #15147

Closed
opened 2025-11-02 11:39:55 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/100
Author: @ethantkoenig
Created: 11/6/2016
Status: Merged
Merged: 11/17/2016
Merged by: @andreynering

Base: masterHead: develop


📝 Commits (1)

📊 Changes

5 files changed (+138 additions, -34 deletions)

View changed files

📝 models/user.go (+15 -0)
📝 modules/context/api.go (+31 -0)
📝 routers/api/v1/api.go (+13 -1)
📝 routers/api/v1/repo/repo.go (+3 -33)
routers/api/v1/user/star.go (+76 -0)

📄 Description

This pull request adds the following API endpoints:

  • GET /users/:username/starred: List repositories starred by a user
  • GET /user/starred: List repositories starred by authenticated user
  • GET /user/starred/:owner/:repo: If authenticated user is starring a repository
  • PUT /user/starred/:owner/:repo: Star a repository (as authenticated user)
  • DELETE /user/starred/:owner/:repo: Unstar a repository (as authenticated user)

Each of these endpoints already exists in the Github API.


🔄 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/100 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 11/6/2016 **Status:** ✅ Merged **Merged:** 11/17/2016 **Merged by:** [@andreynering](https://github.com/andreynering) **Base:** `master` ← **Head:** `develop` --- ### 📝 Commits (1) - [`0834e49`](https://github.com/go-gitea/gitea/commit/0834e492c06e30d30c2bc8eec4fcb6c499a62ced) API endpoints for stars ### 📊 Changes **5 files changed** (+138 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `models/user.go` (+15 -0) 📝 `modules/context/api.go` (+31 -0) 📝 `routers/api/v1/api.go` (+13 -1) 📝 `routers/api/v1/repo/repo.go` (+3 -33) ➕ `routers/api/v1/user/star.go` (+76 -0) </details> ### 📄 Description This pull request adds the following API endpoints: - `GET /users/:username/starred`: List repositories starred by a user - `GET /user/starred`: List repositories starred by authenticated user - `GET /user/starred/:owner/:repo`: If authenticated user is starring a repository - `PUT /user/starred/:owner/:repo`: Star a repository (as authenticated user) - `DELETE /user/starred/:owner/:repo`: Unstar a repository (as authenticated user) Each of these endpoints already exists in [the Github API](https://developer.github.com/v3/activity/starring/). --- <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 11:39:55 -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#15147