### 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** - [x] Step 1: Create the `POST /album_roles` route to assign a role to a user for an album. - [x] Step 2: Create the `GET /album_roles/{id}` route to retrieve role details by `id`. - [x] Step 3: Create the `PUT /album_roles/{id}` route to update a user’s role for an album. - [x] Step 4: Create the `DELETE /album_roles/{id}` route to remove a role from the database. - [x] Step 5: Add validation and error handling for album role operations. --- **Acceptance Criteria** - [x] Album roles can be created, read, updated, and deleted via API endpoints. - [x] 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** - Figma: https://www.figma.com/design/SHU630W8Cn50MfTaLoUPZf/Project-Type?node-id=0-1&t=gCciU4ol2Ykzq4ZP-1 - Notion: https://lying-drill-9f6.notion.site/Fall-24-Web-Dev-Advanced-2-Resource-Page-67eb532ca1a349ebb67214b71f40f4a3?pvs=4 --- **Assignee(s)** - @AssignedMember
Issue Title: Create CRUD operations for Album Roles table
Description
album_roletable.Info
Task List
POST /album_rolesroute to assign a role to a user for an album.GET /album_roles/{id}route to retrieve role details byid.PUT /album_roles/{id}route to update a user’s role for an album.DELETE /album_roles/{id}route to remove a role from the database.Acceptance Criteria
Branch Navigation
develop/album-role-crudgit fetch origingit checkout album-role-crudResources / References
Assignee(s)