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

Endpoint: Entity ID to URI #215

Closed
antirotor opened this issue May 30, 2024 · 5 comments · Fixed by #242
Closed

Endpoint: Entity ID to URI #215

antirotor opened this issue May 30, 2024 · 5 comments · Fixed by #242
Assignees
Labels
type: feature Adding something new and exciting to the product

Comments

@antirotor
Copy link
Member

antirotor commented May 30, 2024

Story

For use in USD workflows and Asset Resolution, we need centralized endpoint that will take project and entity ID and returns valid URL.

Problems

This will solve places on pipeline side of things where we need to translate already existing IDs (for example representation IDs) to their URI form to feed them as paths for USD asset resolver (in loaders) and it is needed for the new representation model.

@antirotor antirotor added the type: feature Adding something new and exciting to the product label May 30, 2024
@BigRoy
Copy link
Contributor

BigRoy commented May 30, 2024

Isn't this basically:

  • http://{server}/api/projects/{project_name}/representations/{representation_id}?

The same exists for folder ids, version ids, etc. already.

Or did you mean to have a generic one that "returns any entity type" and just returns any matching type that happens to have that ID? How reliable is that? Are ids enforced to be unique even across folders to representations?

@antirotor
Copy link
Member Author

to be more precise - not http, but

ayon+entity://project/folder?product&version&representation

if you have just representation id, you need to trace back to put together everything else and it would be good to have central "source of truth" for that.

@martastain
Copy link
Member

complement to /api/resolve/

/api/unresolve or /api/dissolve .... hmmmmm :)

@antirotor
Copy link
Member Author

complement to /api/resolve/

/api/unresolve or /api/dissolve .... hmmmmm :)

yep, I like /api/antiresolve

@BigRoy
Copy link
Contributor

BigRoy commented May 30, 2024

I see - an endpoint taking a representation id turning it into the ayon+entity URI equivalent.

@martastain martastain linked a pull request Jun 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Adding something new and exciting to the product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants