[eco-news-controller POST Add new eco news ] Invalid JSON in the documentation #18
Labels
api-eco-news
bug
Something isn't working
documentation
Improvements or additions to documentation
POST
pri:high
sev:high
Environment:
Windows 11 Home Version 22H2 (64-bit)
GreenCityDocker-3 is built and running
Reproducible: always.
Preconditions:
User is logged in as User
Steps to reproduce:
Select the eco-news-controller
Select the POST/econews
Set body=>form-data=>value
{
"image": "string",
"source": "https://example.org/",
"shortInfo": "string",
"tags": [
"string"
],
"titleTranslation":
{"content": "string",
"languageCode": "string"},
"textTranslation":
{"content": "string",
"languageCode": "string"}
}
Send the request.
Actual result:
400Bad Request "message": "must not be empty"
Expected result:
Response code 201 Created with JSON:
{"tags":["Новини","Події"],"text":"
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqssssss
","title":"qqqqqqqqqqqqqqqqqqqqqqqqqqq","source":""}User story links:
![Error 400](https://private-user-images.githubusercontent.com/140602524/267088477-37aedceb-53bd-48c2-a937-97a6c9f60907.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzYzMTQsIm5iZiI6MTczOTY3NjAxNCwicGF0aCI6Ii8xNDA2MDI1MjQvMjY3MDg4NDc3LTM3YWVkY2ViLTUzYmQtNDhjMi1hOTM3LTk3YTZjOWY2MDkwNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwMzIwMTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZTQ2OTE0ZmIwMTAyMTc1OThmODdkODI2NTM5MzFjODNiODBhM2EwNjNhYzEzYWVjM2MwZTNlMzk1NmIyNmY2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.mgp8VF0_qbI9P_62FN5PH8Zr-Op3xCDyLbRj9LlsLPk)
The text was updated successfully, but these errors were encountered: