OlhenShu / GreenCityProjectStage

0 stars 0 forks source link

[Eco-News, POST/econews] The response code 415 (Unsupported Media Type) is not documented in the response codes list #286

Open OlhenShu opened 10 months ago

OlhenShu commented 10 months 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.

Steps to reproduce:

  1. Select the “Eco-news" controller.
  2. Select the method POST/econews .
  3. Do not add the formData (addEcoNewsDtoRequest ).
  4. Send the request.
  5. Compare the returned response code with the list of documented response codes.

Actual result: The 415 (Unsupported Media Type) response code is not documented in the response codes list

Expected result: The 415 (Unsupported Media Type) response code is documented in the response codes list

OleksandrKobetsDev commented 9 months ago

We can also get the 400 (Bad Request) response code.

OleksandrKobetsDev commented 9 months ago

Wrong Example Value | model of AddEcoNewsDtoRequest in swagger POST/econews