Environment: All
Reproducible: Always
Build found:a7d807f
Preconditions
Open Postman.
Choose the POST/PUT method.
Enter valid endpoints.
Steps to reproduce
Enter the valid and required data in the body ("index", "title", "streetcodeType", "eventStartOrPersonBirthDate", "teaser" and "imagesIds&imagesDetails").
Add an existing partner to the body using partner's id in the array ( e.g. "partners": [31, 32, 41], ).
Actual result
The response returns a '400 Bad Request' status, along with the message 'One or more validation errors occurred.'. The StreetCode has not been created.
Expected result
The response returns a '201 Created' status. The StreetCode has been created.
User story and test case links
User story #499
[Test case] #1315
According to the swagger documentation, if we use the optional 'Partners' field, we must add not only the 'id', but also a 'title':
"partners": [
{
"id": 0,
"title": "string"
}
Environment: All Reproducible: Always Build found: a7d807f
Preconditions
Steps to reproduce
Actual result The response returns a '400 Bad Request' status, along with the message 'One or more validation errors occurred.'. The StreetCode has not been created.
Expected result The response returns a '201 Created' status. The StreetCode has been created.
User story and test case links User story #499 [Test case] #1315