Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.43 KB

File metadata and controls

54 lines (41 loc) · 1.43 KB

Assignment Description

Backend

Please implement an API that allows users to explore and manage roles in a self-service manner. The API should support the following operations:

  1. Find all roles owned by a user

    • Returns all roles where the given user is the owner.
  2. Find all roles where a user is a member

    • Returns all roles the user is assigned to via role_assignees.
  3. Search roles

    • Supports search by:
      • id
      • name
      • display_name
    • Include optional filters to narrow results (for example search only by display name).
  4. Fetch role details by ID

    • Returns role information including:
      • id
      • name
      • display_name
      • description
      • owner
      • Assigned users
      • Entitlements
  5. Change role data

    • Update the role details:
      • Display name
      • Descrpition
      • Owner
    • Only Role Owner can edit this data.

Frontend

  • Implement a simple UI to perform the operations supported by API. Pages needed:
    • Roles I have
    • Roles I own
    • Search roles
    • Role detais
  • Authentication is not required; hardcode a "current user" for demonstration purposes.

Data

  • The backend should use an H2 database with preloaded dummy data.
  • SQL file: /backend/src/main/resources/data.sql

Tech stack

  • Use Spring for the REST API.
  • Use Angular for frontend.