gitea/routers/api/v1/swagger
Florin Hillebrand ad6d08d155
Add API to query collaborators permission for a repository ()
Targeting , 

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.
..
app.go Swagger AccessToken fixes ()
cron.go Add cron running API ()
issue.go Add API to get issue/pull comments and events (timeline) ()
key.go Move sdk structs to modules/structs ()
misc.go API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings ()
nodeinfo.go Add nodeinfo endpoint for federation purposes ()
notify.go [API] add endpoint to check notifications [Extend ] ()
options.go Add API to get/edit wiki ()
org.go [API] Add endpount to get user org permissions ()
package.go Add Package Registry ()
repo.go Add API to query collaborators permission for a repository ()
settings.go Expose Attachemnt Settings by API ()
user.go [API] GET / SET User Settings ()