OlhenShu / ProjectStage_Team2_May

0 stars 0 forks source link

[Eco-News, GET /econews/contentAndSourceForEcoNews/{id}] The response code 403 (Forbidden) is not documented in the response codes list #288

Open OlhenShu opened 1 month ago

OlhenShu commented 1 month ago

Environment: Windows 11 Home Chrome 114.0.5735.91 (Official buid) (64-bit) GreenCityDocker-3 is built and running.

Reproducible: always.

Pre-conditions: User is logged in as Authorized User. An econews is created.

Steps to reproduce

  1. Select the “Eco-news" controller.
  2. Select the method GET /econews/contentAndSourceForEcoNews/{id} .
  3. Set the "id" of the created econews as the value of the "id" parameter.
  4. Compare the returned response code with the list of documented response codes.

Actual result: The 403 (Forbidden) response code is not documented in the response codes list.

Expected result: The 403 (Forbidden) response code is documented in the response codes list.