Use postman API to test the application as explained below:
To signup a new user use POST request with api/auth/signup and pass required information as raw JSON in the request body.The role can be admin, mod(moderator), or user which will determine the access to the info.
You can access the public content directly as shown:
To Login as a existing user use POST method with username and password values as raw JSON data in the request body with api/auth/signin as shown. You will recieve response as the user details with the role assigned to it.
You can also check for cookies.
Once logged in you can access resource of the particular role using api/test/[role].
You can Logout of using the POST method with api/auth/signout.
You can change the database connection properties and values in application.properties file.