File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ accessionid
4747accessionids
4848accesskey
4949accesstoken
50+ acecc
5051ack'ed
5152acked
5253adminPassword
7980bugfix
8081buildvcs
8182cacert
83+ cbb
8284ccacd
8385cega
8486cegamq
Original file line number Diff line number Diff line change @@ -220,6 +220,24 @@ Admin endpoints are only available to a set of whitelisted users specified in th
220220 - ` 401` Token user is not in the list of admins.
221221 - ` 500` Internal error due to DB failure.
222222
223+ - ` /users/:username/file/:fileid`
224+ - accepts ` GET` requests.
225+ - downloads a file from the inbox, re-encrypted with the client’s public key provided in the request header.
226+ - the public key provided in the header should be ` base64` encoded.
227+
228+ - Error codes
229+ - ` 200` Query execute ok.
230+ - ` 400` Client public key not provided or not valid.
231+ - ` 401` Token user is not in the list of admins.
232+ - ` 404` File not found
233+ - ` 500` Internal error due to Inbox, Reencrypt, DB, MQ or streaming failures.
234+
235+ Example:
236+
237+ ` ` ` bash
238+ curl -H " Authorization: Bearer $token " -H " C4GH-Public-Key: $base64_encoded_public_key " -X GET https://HOSTNAME/users/submitter@example.org/file/c2acecc6-f208-441c-877a-2670e4cbb040
239+ ` ` `
240+
223241- ` /c4gh-keys/add`
224242 - accepts ` POST` requests with the hex hash of the key and its description
225243 - registers the key hash in the database.
You can’t perform that action at this time.
0 commit comments