This API can be used to retrieve the revisions list of objects that satisfy the request criteria. A revision represents an action of creating, modifying or deleting the object/record.
Request
URL | /openspecimen/rest/ng/audit/revisions |
Method | POST |
Body |
Code Block |
---|
[
{
"objectName": "collection_protocol_registration",
"objectId": 1
}
] |
|
Response
Code Block |
---|
[
{
"revisionId": 2286,
"changedBy": {
"id": 2,
"firstName": "Jannie",
"lastName": "Doe",
"emailAddress": "jannie.doe@localhost"
},
"changedOn": 1443534843000,
},
{
"revisionId": 22,
"changedBy": {
"id": 1,
"firstName": "John",
"lastName": "Doe",
"emailAddress": "john.doe@localhost"
},
"changedOn": 1430723985000,
}
] |
Request parameters
Parameter | Description |
---|
objectName | The object type whose revisions list is being queried. Example - collection_protocol_registration, collection_protocol, participant, visit, specimen, etc |
objectId | OpenSpecimen assigned unique integer ID that identifies the object/record within the object type domain. For example: <specimen, 50> identifies specimen record whose ID is 50 |
Response parameters
Parameter | Description |
---|
revisionId | Unique ID assigned to every revision in OpenSpecimen. |
changedBy | User who effected the revision. |
changedOn | Date and time of the revision. |