missing list endpoint for /orgs/ #2548

Closed
opened 2025-11-02 04:40:02 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @fragfutter on GitHub (Nov 19, 2018).

  • Gitea version (or commit ref): 1.5.3
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

the api endpoints for orgs and teams are missing list options. I would like to get a list of all team ids. Either by querying "GET /teams/" and get all teams (or all team ids) or by querying "GET /orgs/" to get all orgs and then query each org for it's teams.

Originally created by @fragfutter on GitHub (Nov 19, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.5.3 - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description the api endpoints for orgs and teams are missing list options. I would like to get a list of all team ids. Either by querying "GET /teams/" and get all teams (or all team ids) or by querying "GET /orgs/" to get all orgs and then query each org for it's teams.
GiteaMirror added the issue/confirmedmodifies/api labels 2025-11-02 04:40:02 -06:00
Author
Owner

@lunny commented on GitHub (Nov 20, 2018):

see https://try.gitea.io/api/swagger, you can list all teams of an organization via /orgs/{org}/teams and you can get all your organization via /user/orgs.

@lunny commented on GitHub (Nov 20, 2018): see https://try.gitea.io/api/swagger, you can list all teams of an organization via `/orgs/{org}/teams` and you can get all your organization via `/user/orgs`.
Author
Owner

@fragfutter commented on GitHub (Nov 20, 2018):

and finding all organizations (not only mine)?

@fragfutter commented on GitHub (Nov 20, 2018): and finding all organizations (not only mine)?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2548