A verified researcher is able to download his/hers requests.
{info} Only a researcher can download requests
| Method | Uri | Auth | Role |
|---|---|---|---|
GET |
/v1/requests/{UUID}/download |
Bearer JWT-Token |
researcher |
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 created requests.
HTTP/1.1 200 OK
Server: nginx/1.18.0 (Ubuntu)
Content-Type: application/pdf
Content-Length: 2113
Connection: close
Content-Disposition: attachment; filename="hello-sunshine-exposure.pdf"
Cache-Control: no-cache, private
Date: Fri, 15 Jan 2021 15:49:17 GMT
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
FILE CONTENT
Condition : If the current user does not have the role researcher attached.
Code : 403 Unauthorized
Content example :
{
"message": "User does not have the right roles."
}