Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jbygdell committed Nov 18, 2024
1 parent 724f6ac commit bea052b
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 @@ -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
Expand Down

0 comments on commit bea052b

Please sign in to comment.