You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/routers/api/v1/swagger
Florin Hillebrand ad6d08d155
Add API to query collaborators permission for a repository (#18761)
Targeting #14936, #15332

Adds a collaborator permissions API endpoint according to GitHub API: https://docs.github.com/en/rest/collaborators/collaborators#get-repository-permissions-for-a-user to retrieve a collaborators permissions for a specific repository.

### Checks the repository permissions of a collaborator. 

`GET` `/repos/{owner}/{repo}/collaborators/{collaborator}/permission`

Possible `permission` values are `admin`, `write`, `read`, `owner`, `none`.

```json
{
  "permission": "admin",
  "role_name": "admin",
  "user": {}
}
```

Where `permission` and `role_name` hold the same `permission` value and `user` is filled with the user API object. Only admins are allowed to use this API endpoint.
2 years ago
..
app.go Swagger AccessToken fixes (#16574) 3 years ago
cron.go Add cron running API (#12421) 4 years ago
issue.go Add API to get issue/pull comments and events (timeline) (#17403) 3 years ago
key.go Move sdk structs to modules/structs (#6905) 5 years ago
misc.go API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) 4 years ago
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
notify.go [API] add endpoint to check notifications [Extend #9488] (#9595) 5 years ago
options.go Add API to get/edit wiki (#17278) 3 years ago
org.go [API] Add endpount to get user org permissions (#17232) 3 years ago
package.go Add Package Registry (#16510) 2 years ago
repo.go Add API to query collaborators permission for a repository (#18761) 2 years ago
settings.go Expose Attachemnt Settings by API (#12514) 4 years ago
user.go [API] GET / SET User Settings (#16169) 3 years ago