Skip to content

Describe undocumented way to access repository with repository_id #45674

Description

@Aramarchuk

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api

What part(s) of the article would you like to see updated?

There exists an undocumented way to work with API - it's possible to select repository not only with owner/repo, but also with repository_id.

I believe this should be described somewhere, since every endpoint that works with repo can be accessed this way

For example: https://api.github.com/repositories/189621607 or even https://api.github.com/repositories/189621607/issues

I think this way to access API is useful, since it's unaffected by any renaming and repository moving. It works and undocumented for at least several years, and even implemented in some SDK, so it's probably reasonable to explain such behavior in docs

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions