Skip to content

project_info() should also support querying project by ID #179

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

Closed
wonder-sk opened this issue Oct 10, 2023 · 0 comments · Fixed by #181
Closed

project_info() should also support querying project by ID #179

wonder-sk opened this issue Oct 10, 2023 · 0 comments · Fixed by #181
Assignees
Labels
enhancement New feature or request

Comments

@wonder-sk
Copy link
Contributor

project_info() queries project by "/" (called project_path), we should also make it possible to pass project ID instead of the full project name to get project info. I would suggest to rename the first argument to project_path_or_id and depending on whether the input is a valid UUID (using this syntax: ef6460df-0efe-4f86-8eb8-4bc2faa6b13a - lowercase, with dashes, no braces) it would do the query by name or by ID. The endpoint for querying by ID is this one (exists long enough to expect that all servers support it):

GET /v1/project/by_uuid/ef6460df-0efe-4f86-8eb8-4bc2faa6b13a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants