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.
gitea/routers/api/v1
Giteabot da1c38dd47
Fix `organization` field being `null` in `GET /api/v1/teams/{id}` (#24694) (#24696)
Backport #24694 by @yardenshoham

Enabled the organization loading flag.

- Fixes #20399 

# Before
```json
{
  ...
  "description": "",
  "organization": null,
  "includes_all_repositories": true,
  "permission": "owner",
  ...
}
```

# After
```json
{
  ...
  "description": "",
  "organization": {
    "id": 2,
    "name": "bigorg",
    "full_name": "",
    "avatar_url": "https://3000-yardenshoham-gitea-3gfrlc9gn4h.ws-us96b.gitpod.io/avatars/e2649b0c016d9102664a7d4349503eb9",
    "description": "",
    "website": "",
    "location": "",
    "visibility": "public",
    "repo_admin_change_team_access": true,
    "username": "bigorg"
  },
  "includes_all_repositories": true,
  "permission": "owner",
  ...
}
```

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Yarden Shoham <git@yardenshoham.com>
2 years ago
..
activitypub Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) (#23905) 2 years ago
admin Fix typo in API route (#24310) (#24332) 2 years ago
misc Implement FSFE REUSE for golang files (#21840) 2 years ago
notify Move `convert` package to services (#22264) 2 years ago
org Fix `organization` field being `null` in `GET /api/v1/teams/{id}` (#24694) (#24696) 2 years ago
packages Add Chef package registry (#22554) 2 years ago
repo Fix api error message if fork exists (#24487) (#24493) 2 years ago
settings Implement FSFE REUSE for golang files (#21840) 2 years ago
swagger Implement FSFE REUSE for golang files (#21840) 2 years ago
user Add scopes to API to create token and display them (#22989) 2 years ago
utils Support system hook API (#14537) 2 years ago
api.go Fix access token issue on some public endpoints (#24194) (#24259) 2 years ago
auth.go Implement FSFE REUSE for golang files (#21840) 2 years ago
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2 years ago