StreetCode
StreetCode copied to clipboard
[API][Admin][News] Verify that the news cannot be created with special symbols ($,@,%,#) in 'url' field using POST method
Priority: High
- Postman is opened
- User is authorized
- The POST method is chosen
- 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
- Input a valid endpoint https://stageback.streetcode.com.ua/api/News/Create
- Input value in the 'url' field with special symbols (e.g. $,@,%,#, &,^)
- 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