forgejo/routers/api/v1
Giteabot bfa368adbe
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>
(cherry picked from commit da1c38dd47)
2023-05-16 07:42:22 +02:00
..
activitypub Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) (#23905) 2023-04-03 22:41:57 -05:00
admin Fix typo in API route (#24310) (#24332) 2023-04-25 10:57:33 -04:00
misc [BRANDING] Update nodeinfo branding 2023-05-10 11:05:22 +02:00
notify Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
org Fix organization field being null in GET /api/v1/teams/{id} (#24694) (#24696) 2023-05-16 07:42:22 +02:00
packages Add Chef package registry (#22554) 2023-02-06 09:49:21 +08:00
repo [BRANDING] add X-Forgejo-* headers 2023-05-10 11:05:22 +02:00
settings Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
user Add scopes to API to create token and display them (#22989) 2023-02-20 15:28:44 -06:00
utils Support system hook API (#14537) 2023-01-28 19:12:10 +01:00
api.go [BRANDING] X-Forgejo-OTP can be used instead of X-Gitea-OTP 2023-05-10 11:05:22 +02:00
auth.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00