Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 396
    • Issues 396
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhale
  • funkwhalefunkwhale
  • Merge requests
  • !921

API support for restricting results by scope

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Agate requested to merge 594-scope-api into develop Oct 10, 2019
  • Overview 7
  • Commits 7
  • Pipelines 5
  • Changes 7

See #594 (closed): added support for filtering API results (tracks, albums, artists, uploads, playlists, radios, listenings and favorites) by scope, e.g:

  • GET /api/v1/artists/?scope=me: list all artists available in my libraries
  • GET /api/v1/albums/?scope=all: list all albums (equivalent to omitting the scope parameter)

The scope=me parameter will be used to allow creating a UI to browse personal content, as part of #594 (closed). In the future, we me also allow scope=user@domain for browsing a specific user public content, or scope=followed to browse content from followed people.

(There is also an unrelated commit to enable MusicBrainz ID filtering on artists/albums/tracks endpoints)

cc @funkwhale/reviewers-python

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 594-scope-api