Skip to content

Organization is null from GET team API #20399

Closed
@arnWolff

Description

@arnWolff

Description

When i call API endpoint /api/v1/teams/{id}, the organization property is null.
I would expect it to return Oraganization entity as value.
Same result if called from an Admin account or user member of this team.

Is this expected behaviour?

I cannot reproduce this issue on official website because i cannot create organization there.

Gitea Version

1.16.4

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Ubuntu Server 20.04

How are you running Gitea?

Running Gitea on local server.

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions