Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Missing swagger definitions for POST /orgs/{org}/teams #26111

Closed
lonix1 opened this issue Jul 25, 2023 · 0 comments · Fixed by #26155
Closed

[Docs] Missing swagger definitions for POST /orgs/{org}/teams #26111

lonix1 opened this issue Jul 25, 2023 · 0 comments · Fixed by #26155
Labels
type/bug type/docs This PR mainly updates/creates documentation

Comments

@lonix1
Copy link
Contributor

lonix1 commented Jul 25, 2023

Description

The swagger endpoint /orgs/{org}/teams (POST) is missing some documentation.

{
  "can_create_org_repo": true,
  "description": "string",
  "includes_all_repositories": true,
  "name": "string",
  "permission": "read",
  "units": [
    "repo.actions",               // missing
    "repo.code",
    "repo.ext_issues",
    "repo.ext_wiki",              // missing
    "repo.issues",
    "repo.packages",              // missing
    "repo.projects",
    "repo.pulls",
    "repo.releases",
    "repo.wiki"
  ],
  "units_map": {
    "repo.actions": "none",       // missing
    "repo.code": "read",
    "repo.ext_issues": "none",
    "repo.ext_wiki": "none",
    "repo.issues": "write",
    "repo.packages": "none",      // missing
    "repo.projects": "none",
    "repo.pulls": "owner",
    "repo.releases": "none",
    "repo.wiki": "admin"
  }
}

Gitea Version

1.21.0+dev-354-g24c3bb95a

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

n/a

Screenshots

n/a

Git Version

n/a

Operating System

n/a

How are you running Gitea?

n/a

Database

None

@lonix1 lonix1 changed the title [Docs] Missing swagger definitions for CREATE /orgs/{org}/teams [Docs] Missing swagger definitions for POST /orgs/{org}/teams Jul 25, 2023
@lunny lunny added the type/docs This PR mainly updates/creates documentation label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/bug type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants