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

Expose playlists #31

Open
mgoltzsche opened this issue Dec 10, 2023 · 0 comments
Open

Expose playlists #31

mgoltzsche opened this issue Dec 10, 2023 · 0 comments

Comments

@mgoltzsche
Copy link

The queries used to generate playlists are often specific to the underlying audio library contents (since they likely depend on specific plugins that were used to import the audio data into the library). Correspondingly, it would make sense to maintain playlist generation logic also within the audio library along with the audio files.
Also, I think it would be beneficial to make playlist serving a core feature of the AURA API (as opposed to implementing that as an extension) so that clients can support playlist browsing consistently.

Thus, I propose to add two new GET endpoints to the AURA API that each return a JSON response:

  • /aura/playlists to list the available playlists (only their IDs really).
  • /aura/playlists/{id} to list the tracks contained within a particular playlist (specified by path param) using the same response format as the /aura/tracks endpoint.

Example response body of the /aura/playlists endpoint:

{
  "data": [
    {
      "id": "id1",
      "name": "Jazz",
    },
  ]
}

Example response body of the /aura/playlists/{id} endpoint:

{
  "data": [
    {
      "title": "Bag's Groove",
      "artist": "Miles Davis",
      ...
    },
    ...
  ]
}
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