Skip to content

[US] Get Only My Bookmarks #107

@JaqiKal

Description

@JaqiKal

Statement:

As a user, I can access an endpoint that shows only my own bookmarks so that I can quickly find resources I’ve saved without sifting through everyone’s bookmarks.

Acceptance Criteria:

  • [ ]: Endpoint /bookmarks/me/ returns only bookmarks created by the authenticated user.
  • [ ]: The endpoint requires authentication and returns 403 if the user is not logged in.
  • [ ]: The response is paginated and includes metadata (count, next, previous).

Tasks:

  • [ ]: Add a custom route @action(detail=False) in BookmarkViewSet called me.
  • [ ]: Filter queryset by request.user and return only their bookmarks.
  • [ ]: Restrict access to authenticated users.
  • [ ]: Add tests for success and unauthorized access cases.

Belonging to EPIC: Database & Backend
Belonging to Feature: User Dashboard
Belonging to Theme: Core Features

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions