1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/routers/api/v1
Yarden Shoham 542adf50d5
Fix organization field being null in GET /api/v1/teams/{id} (#24694)
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: Giteabot <teabot@gitea.io>
2023-05-13 14:47:58 +00:00
..
activitypub Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 2023-04-04 10:08:23 +08:00
admin Improve template system and panic recovery (#24461) 2023-05-04 14:36:34 +08:00
misc Improve template system and panic recovery (#24461) 2023-05-04 14:36:34 +08:00
notify
org Fix organization field being null in GET /api/v1/teams/{id} (#24694) 2023-05-13 14:47:58 +00:00
packages Add Alpine package registry (#23714) 2023-05-12 17:27:50 +00:00
repo Filter get single commit (#24613) 2023-05-10 09:34:07 +08:00
settings
swagger Add API for gitignore templates (#22783) 2023-04-27 11:51:20 +08:00
user Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
utils Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
api.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2023-05-09 01:30:14 +02:00
auth_windows.go
auth.go