Commit 240973ce authored by Petr Šlézar's avatar Petr Šlézar
Browse files

Readme change - more explicit instruction

parent ec3c69c0
......@@ -32,9 +32,20 @@ Webpage will be available on http://localhost:8081/pa165
- Admin can write reviews and delete any reviews,
### Testing the app
**About features**
- All exposed enpoints provide all the functionality that is available for the app - both CRUD and Business functions
- The FE application provides authentication, recommendation, review creation and deletion, and browsing of movies
**Swagger**
- Go to http://localhost:8080/pa165/rest/swagger-ui.html
- You need to authenticate, use token `eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjei5maS5tdW5pLnBhMTY1Lm1vdmllcmVjb21tZW5kZXIiLCJpYXQiOjE2NTMzMTM4MjEsInN1YiI6IjEiLCJleHAiOjE2NTM0MDAyMjEsInJvbGUiOiJBRE1JTiIsIm5hbWUiOiJhZG1pbiJ9.douDjKgiV02Ct8FgBrAYnazNjXsPd1iPjdYiS-xFjHk`
- For each method you will have an option to try it out
- If you wish to change user role, just change it via:
1. Login Controller Provider -> POST with body of user credentials (eg. "karel" "karel" )
2. Copy the returned authentication token value to the form provided after clicking "Authorize" button
3. You are logged as a different user! (Notice how myInfo() from User Controller Provider returns different info)
4. To switch just logout also via "Authorize" button and repeat from 1.
**Alternatively**
- Login in as user admin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment