Skip to content

LordEinner/CandidateTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published