OlhenShu / ProjectStage_Team2_May

0 stars 0 forks source link

[Category, POST /category] The response code 400 (Bad request) is not documented in the response codes list #252

Open OlhenShu opened 2 months ago

OlhenShu commented 2 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 as Admin. The category with the data { "name": "string2", "nameUa": "string2", "parentCategoryId": 0} is already created.

Steps to reproduce

  1. Select “Category Controller” section.
  2. Select the method POST/category.
  3. Add the request body with the next data: { "name": "string2", "nameUa": "string2", "parentCategoryId": 0}
  4. Send the request.
  5. Compare the returned response code with the list of documented response codes.

Actual result: Response 400 (Bad request) is not documented in the list of response codes for the method POST /category “Save category” endpoint

Expected result: Response 400 (Bad request) is documented in the list of response codes for the method POST /category “Save category” endpoint

User story and test case links