Copy the returned JSON structure and insert it into Postman, test the API response. The HTTP response will be easier to work with, and the error message will be more verbose.
-----
#### Inserting a Fake Section
Creating new sections is a complex operation.
...
...
@@ -186,6 +200,8 @@ core 1: 4 sections
}
```
-----
#### Inserting a Fake Split
Splits get inserted core-by-core. (write a bash for-loop of you need to insert more)
...
...
@@ -227,6 +243,8 @@ Map(2) {
}
```
-----
#### Inserting a Fake scientist
> Before you can insert *samples*, you need to insert *scientists* and their *requests*.
...
...
@@ -257,10 +275,14 @@ Created fake scientists from undefined entries in file scientists-hole-20-enty.j
To use the scripts you must get a [Bearer token](https://data.icdp-online.org/mdis-docs/guide/rest-api/#security) for the REST API first. Add it either as an environment variable (`export token=thiSisWHatAtOKENlooKSLikE`), or insert it at the top of the `src/config` file.