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

Possibility: make images a top-level collection #27

Closed
govynnus opened this issue Jun 29, 2020 · 1 comment
Closed

Possibility: make images a top-level collection #27

govynnus opened this issue Jun 29, 2020 · 1 comment

Comments

@govynnus
Copy link
Member

Hello,

I've had a thought, but I'm not sure if it's a good one (or one that's already been had): should images be it's own top-level collection?

There would be endpoints /aura/images and /aura/images/(id) (rather than /aura/tracks/(id)/images) which would return "image resource objects". Then the actual file could be retrieved like audio for a track with something like /aura/images/(id)/image-file. Image resource objects for a specific track/album would be obtained through inclusion as is the case now.

Obviously this would mean you'd have to have globally unique IDs for each image which might be a bit more complicated than a simple per-resource index, but I think standardising images to behave more like other parts of the spec could make it simpler overall.

What do you think?

@govynnus
Copy link
Member Author

Just realised you've already thought about this in #3 and suggested nearly exactly what I just did as one of the options :-)
I'll close this and possibly continue my thoughts in #3 once I've considered it a bit more.

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

No branches or pull requests

1 participant