Create/Update Storage Record API response should include the Record version to prevent possible race condition
Currently this API returns the following response body
{
"recordCount": 0,
"recordIds": [
"string"
],
"skippedRecordIds": [
"string"
]
}
The client then needs to read the Record to get the version of the Record they created/updated. In this time another client could have created a new version of the Record and so the original client will not retrieve the correct version they created.
If the response body of the API included the version of the ID then the client knows what version of the record they created. The suggestion is to add a new property to the response body that includes this
{
"recordCount": 0,
"recordIds": [
"string"
],
"recordIdVersions": [
"string"
],
"skippedRecordIds": [
"string"
]
}
where each recordIdVersions value will be in the format
<id>:<version>
e.g.
"common:welldb:123456:2300942424909"
Edited by ashley kelham