Skip to content

Commit

Permalink
Merge pull request #1016 from neicnordic/fix-small-error-api-doc
Browse files Browse the repository at this point in the history
Update api.md
  • Loading branch information
jbygdell authored Sep 2, 2024
2 parents 986c441 + 468e051 commit ccab286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sda/cmd/api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Admin endpoints are only available to a set of whitelisted users specified in th

- `/dataset/create`
- accepts `POST` requests with JSON data with the format: `{"accession_ids": ["<FILE_ACCESSION_01>", "<FILE_ACCESSION_02>"], "dataset_id": "<DATASET_01>"}`
- creates a datset from the list of accession IDs and the dataset ID.
- creates a dataset from the list of accession IDs and the dataset ID.

- Error codes
- `200` Query execute ok.
Expand All @@ -70,7 +70,7 @@ Admin endpoints are only available to a set of whitelisted users specified in th
Example:

```bash
curl -H "Authorization: Bearer $token" -H "Content-Type: application/json" -X POST -d '{"accession_idd": ["my-id-01", "my-id-02"], "dataset_id": "my-dataset-01"}' https://HOSTNAME/dataset/create
curl -H "Authorization: Bearer $token" -H "Content-Type: application/json" -X POST -d '{"accession_ids": ["my-id-01", "my-id-02"], "dataset_id": "my-dataset-01"}' https://HOSTNAME/dataset/create
```

- `/dataset/release/*dataset`
Expand Down

0 comments on commit ccab286

Please sign in to comment.