Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Public content for authorized user #82

Open
@jmgiaever

Description

The documentation states that querying:

  • repositories GET {url}/api/v1/users/{username}/{repos}
  • organizations GET {url}/api/v1/users/{username}/{orgs}
  • etc
    should only return public data of that user. That isn't the fact if the {username} is the same user that owns the api-token, instead everything is returned.

This is what one can expect when issuing the GET {url}/api/v1/user/repos and similar requests for the authorized user.

Either must the documentation be changed to cover the differences or the code should actually return the public data within the scopes for public data.

Second one makes the most sense.... It would be convenient to actually have an method to get only public data, even for the authorized user, as the data returned for some requests (such as organizations) doesnt tell if this data is a private or public.

Gogs Version: 0.11.29.0727

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /