Skip to content

Create CRUD operations for Album Roles table #9

Description

@dab1an

Issue Title: Create CRUD operations for Album Roles table


Description

  • Implement CRUD operations for the album_role table.
  • This table is used to manage user roles for specific albums, ensuring appropriate access levels (e.g., owner, viewer, editor).

Info

  • You can use the serer/api/users/user_router.py as a reference to do this

Task List

  • Step 1: Create the POST /album_roles route to assign a role to a user for an album.
  • Step 2: Create the GET /album_roles/{id} route to retrieve role details by id.
  • Step 3: Create the PUT /album_roles/{id} route to update a user’s role for an album.
  • Step 4: Create the DELETE /album_roles/{id} route to remove a role from the database.
  • Step 5: Add validation and error handling for album role operations.

Acceptance Criteria

  • Album roles can be created, read, updated, and deleted via API endpoints.
  • Unit tests for all operations are implemented and passing.

Branch Navigation

  • Branch Name: develop/album-role-crud
  • git fetch origin
  • git checkout album-role-crud

Resources / References


Assignee(s)

  • @AssignedMember

Activity

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions