Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

http://localhost:8080/api/foos/count is available for authenticated users (regular user and admin) - regukar user

URL: http://localhost:8080/api/foos/count

Method: Get

Authentication:

user/password

http://localhost:8080/weather/Gdynia only admin has access - whithout any login

URL: http://localhost:8080/weather/Gdynia

Method: Get

Authentication: no authentication

http://localhost:8080/logout

URL: http://localhost:8080/logout

Method: Get

Authentication: no auhentication

Step

Action

Expected system response

Comment

1

http://localhost:8080/ it is not protected

Open Postman.

Enter:

URL: http://localhost:8080/

Method: Get

Authentication: no authentication

Image Removed

Should appear: Status 200 OK2

Check if Api is visible:

URL:http://localhost:8080/api/foos/count is available for authenticated users (regular user and admin) - without any loginURL: http://localhost:8080/api/foos/countorders

Method: Get

Authentication: no auhentication

Image Removed

Should appear: Status 401 Unauthorized3

Image Removed

Should appear: Status 200 OK
4

http://localhost:8080/api/foos/count is available for authenticated users (regular user and admin) - admin

URL: http://localhost:8080/api/foos/count

Method: Get

Authentication:

admin/password

Image Removed

Should appear: Status 200 OK
5

Image Removed

Should appear: Status 401 Unauthorized
6

http://localhost:8080/weather/Gdynia only admin has access - regular user

URL: http://localhost:8080/weather/Gdynia

Method: Get

Authentication: user/password

Image Removed

Should appear: Status 401 Unauthorized
7

http://localhost:8080/weather/Gdynia only admin has access - regular user

URL: http://localhost:8080/weather/Gdynia

Method: Get

Authentication: admin/password

Image Removed

Should appear: Status 200 OK
8

Image Removed

Should appear: Status 200 OK

GET

Status: 200 OK

 

 

 

Post – conditions: