Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jbygdell committed Dec 2, 2024
1 parent db0cd4b commit 52bc094
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sda/cmd/api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,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 PUT https://HOSTNAME/dataset/verify/my-dataset-01
```

- `/datasets/list`
- accepts `GET` requests
- Returns all datasets together with their status and last modified timestamp.
Expand Down

0 comments on commit 52bc094

Please sign in to comment.