Skip to main content

Running the generated backend

C:\folder_name\generated_project_name\src\main\java\com\rasp\app\Application.java

{"role": "member", "resource": "project", "action": ["GET_BY_ID", "MODIFY"]}

encode this using base64

    • Here send resource in encode format in that one
      • {"role":"member","resource":"project","action":\["GET_BY_ID","MODIFY"\]},this is the formate to save role to resource mapping menction role ,resource and actions action is nothing but apis ,this mapping is kind of this role has access to this particular resource and in that these particular apis
  • Adduser
    • Api endPoint
    • We have to mention resource type first ,user resource type can different for particular user ,for ex(Student type,staff type,security type,and provide auth details ,and at last provide resource details based on resource resource object can be different based on userType
  • Save user to role mapping
    • Here we are mapping user to role so that user will get some permissions based on role
  • Api EndPoint
  • Perform login with registered user