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

Feature: Add API endpoint to retrieve Project ID by Project Name #2714

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

guptave2
Copy link

@guptave2 guptave2 commented Nov 10, 2024

Description 📣

This PR introduces a new API endpoint that allows users to retrieve the project ID by specifying the project slug. This enhancement is particularly useful for users interacting with the API, as it enables them to use memorable project names rather than having to look up and remember GUIDs.

The endpoint is accessible through /api/v2/workspace/[project_slug]/id

Fixes #2594

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

Tests 🛠️

# Here's some code block to paste some code snippets

@akhilmhdh
Copy link
Member

Hi @guptave2

Thank you for your contibution. Just some tiny changes.

Instead of just returning project id, can you change that to return the full sanitized project schema data. Just like the get by id return values

@guptave2
Copy link
Author

Hello @akhilmhdh, thanks for your reply. I have made the changes you mentioned. Could you please confirm this is what you meant? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get the project ID based on the name
2 participants