StreetCode icon indicating copy to clipboard operation
StreetCode copied to clipboard

[API][Admin][News] Verify that the news cannot be created with special symbols ($,@,%,#) in 'url' field using POST method

Open mozhaieva opened this issue 1 year ago • 0 comments

Priority: High

  1. Postman is opened
  2. User is authorized
  3. The POST method is chosen
  4. All required data has been added to the body: { "id": 0, "title": "string", "text": "string", "imageId": 0, "url": "string", "creationDate": "2024-09-11T08:57:56.061Z" }

Steps to reproduce

  1. Input a valid endpoint https://stageback.streetcode.com.ua/api/News/Create
  2. Input value in the 'url' field with special symbols (e.g. $,@,%,#, &,^)
  3. Click the 'Send' button

Expected result The news isn't created - status code '400 Bad Request ' Error message in response body appears: "Url Is Invalid"

User story: #835

mozhaieva avatar Sep 16 '24 09:09 mozhaieva