From bea052bfd8fcf9ef771e2e65dc3363f14bde40de Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Thu, 7 Nov 2024 14:02:24 +0100 Subject: [PATCH] Update Readme --- sda/cmd/api/api.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sda/cmd/api/api.md b/sda/cmd/api/api.md index 861d0c1d0..8aea1348e 100644 --- a/sda/cmd/api/api.md +++ b/sda/cmd/api/api.md @@ -105,6 +105,22 @@ Admin endpoints are only available to a set of whitelisted users specified in th curl -H "Authorization: Bearer $token" -X POST https://HOSTNAME/dataset/release/my-dataset-01 ``` +- `/dataset/verify/*dataset` + - accepts `PUT` requests with the dataset name as last part of the path` + - triggers reverification of all files in the dataset. + + - Error codes + - `200` Query execute ok. + - `404` Error wrong dataset name. + - `401` Token user is not in the list of admins. + - `500` Internal error due to DB or MQ failures. + + Example: + + ```bash + curl -H "Authorization: Bearer $token" -X POST https://HOSTNAME/dataset/release/my-dataset-01 + ``` + - `/users` - accepts `GET` requests` - Returns all users with active uploads as a JSON array