Skip to content

Expose playlists #31

Open
Open
@mgoltzsche

Description

@mgoltzsche

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",
      ...
    },
    ...
  ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions