Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[eco-news-controller POST Add new eco news ] Invalid JSON in the documentation #18

Open
OlenaPodkovyrova opened this issue Sep 11, 2023 · 0 comments
Labels
api-eco-news bug Something isn't working documentation Improvements or additions to documentation POST pri:high sev:high

Comments

@OlenaPodkovyrova
Copy link
Collaborator

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:

  1. Select the eco-news-controller

  2. Select the POST/econews

  3. 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"}
    }

  4. 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

@OlenaPodkovyrova OlenaPodkovyrova added bug Something isn't working api- pri:high sev:high documentation Improvements or additions to documentation api-eco-news POST and removed api- labels Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-eco-news bug Something isn't working documentation Improvements or additions to documentation POST pri:high sev:high
Projects
None yet
Development

No branches or pull requests

1 participant