A verified researcher, approver or reviewer is able to list the request revisions with the changed values listed.
| Method | Uri | Auth | Role |
|---|---|---|---|
GET |
/v1/requests/{UUID}/changes |
Bearer JWT-Token |
researcher|reviewer|approver |
The API requires a header Accept to be submitted with the request:
{
"Accept": "application/json",
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..."
}
Condition : User must be a researcher.
Code : 200 Okay
Content example : Response will reflect back the changes of request.
{
"id": "3e47120e-f2de-4ae3-91ed-05f89082380b",
"status": "awaiting_review",
"revisions": [
{
"id": "9116adb3-6111-4f2a-ae6a-d0c4fc037287",
"title": "Hello Sunshine Exposure 1",
"author": {
"firstName": "Jeroen",
"lastName": "B",
"position": "asdas",
"institute": "asdasd",
"address": "asdad",
"email": "j.b@gmail.com",
"phone": "0123456789"
},
"coauthors": [
"Jeroen de Vries",
"Wim Schrooten",
"Danny Huisman"
],
"has_informed_coauthors": 1,
"has_agreed_terms": 1,
"is_student": 0,
"student_details": "ASDA SD ASD AS dsa",
"hypotheses": "asdasd",
"background": "asdasd",
"design": "asdasd",
"analyses": "asdasdasd",
"timeline": "asdasd",
"request_id": "3e47120e-f2de-4ae3-91ed-05f89082380b",
"created_at": "2021-01-13T13:46:24.000000Z",
"updated_at": "2021-01-13T14:06:51.000000Z",
"changes": []
},
{
"id": "9116adb3-6111-4f2a-ae6a-d0c4fc037286",
"title": "Hello Sunshine Exposure 2",
"author": {
"firstName": "Jeroen",
"lastName": "Boumans",
"position": "asdas",
"institute": "asdasd",
"address": "asdad",
"email": "j.b@gmail.com",
"phone": "012345678"
},
"coauthors": [
"Jeroen de Vries",
"Wim Schrooten"
],
...
"is_student": 1,
...
"updated_at": "2021-01-13T14:06:51.000000Z",
"changes": [
"title",
"coauthors",
"author",
"is_student"
]
},
{
"id": "f1ca06c1-34cd-440f-89ee-47fb3de058fd",
"title": "Hello Sunshine Exposure 3",
...
"coauthors": [
"Jeroen de Vries"
],
...
"changes": [
"title",
"coauthors"
]
}
]
}
Condition : If the current user does not have the role researcher attached.
Code : 404 Not found
{
"message": "No query results for model [App\Models\Request].",
}