Closed dipayan1985 closed 2 months ago
Hi @bedroesb wondering if you passed the webinJwt?
yes @dipayan1985 I did! using curl -u <your_aap_username>:<your_aap_password> https://api.aai.ebi.ac.uk/auth
. It's also required, so I don't think I can submit without it :)
I managed to get it working using the right token generated by: https://wwwdev.ebi.ac.uk/ena/submit/webin/auth/swagger-ui/index.html#/AuthenticationAPI/getToken , giving
{
"targetRepository" : "biosamples",
"accessions" : [ {
"id" : "SAMEA131351359"
}, {
"id" : "SAMEA131351360"
} ]
}
But notice that normally the accession object contains the path of the ISA JSON, and not only the accession, see our repository api document.
@Pedram-A-Keyvani Is it ok if I merge this PR?
@Pedram-A-Keyvani Is it ok if I merge this PR?
Sure!
hey @dipayan1985, thanks a lot!
I was testing out the API using docker compose, and tried submitting a ISA JSON through the swagger page.
Depending on which ISA JSON I use, I get another error.
/test-data/biosamples-input-isa.json
gives:/test-data/ISA-BH2023-ALL/isa-bh2023-all.json
gives:I was wondering which ISA JSON you used to test it?