StreetCode
StreetCode copied to clipboard
[API][Chronology block] It is possible to make a create/update request of chronology card without mandatory keys in the request
trafficstars
Environment: all Reproducible: always Build found: a7d807f
Preconditions
- Open Postman.
- Choose the PUT/POST method.
- Enter valid endpoints.
Steps to reproduce
- Fill in all mandatory keys for creating/updating a Streetcode.
- In the TimelineItems block, fill only the "id" and "title" data keys, in "historicalContexts" too. Delete all other keys. For instance:
Details
"timelineItems": [ { "id": 0, "title": "Сімейне тепло", "historicalContexts": [ { "id": 19, "title": "Радянська Україна" } ] },
- Click the button Send.
Actual result The response returns a '200 OK' status. The new chronology card is created.
Expected result The response returns a '400 Bad Request' status with the message "Add and fill in all mandatory keys in "timelineItems" block".
User story: #124
Related bugs: #1325, #1337