OlhenShu / ProjectStage_Team2_May

0 stars 0 forks source link

[Eco-News, PUT/econews/update] The updateEcoNewsDto form-data model has to be updated #358

Open OlhenShu opened 4 months ago

OlhenShu commented 4 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 not logged in

Steps to reproduce:

  1. Select the “Eco-news" controller.
  2. Select the method PUT/econews/update
  3. Pay attention to the "updateEcoNewsDto" form-data model.

Actual result: The "updateEcoNewsDto" form-data model: { "id": 0, "image": "string", "source": "https://example.org/", "shortInfo": "string", "tags": [ "string" ], "titleTranslation": {"content": "string", "languageCode": "string"}, "textTranslation": {"content": "string", "languageCode": "string"} }

Expected result: The "updateEcoNewsDto" Form data model: {"id":"string", "tags":["string"], "content":"string", "title":"string", "source":"string", "text":"string"}