airr-community / airr-standards

AIRR Community Data Standards
https://docs.airr-community.org
Creative Commons Attribution 4.0 International
35 stars 23 forks source link

ADC curl POST commands in docs need a header #576

Closed bcorrie closed 2 years ago

bcorrie commented 2 years ago

Some repositories (at least VDJServer) are strict and require the header to be of the correct type. The documentation doesn't say this and the curl commands don't work against VDJServer. This doesn't work:

curl --data @/data/src/AIRR/adc-api-tests/repertoire/pass-query1-2_repertoire.json https://vdjserver.org/airr/v1/repertoire

While this does:

curl -H "Content-Type: application/json" --data @/data/src/AIRR/adc-api-tests/repertoire/pass-query1-2_repertoire.json https://vdjserver.org/airr/v1/repertoire

bcorrie commented 2 years ago

Had another user ask about this - curl queries as in the doc not working correctly... Created a pull request to change the ADC API docs, @schristley can you have a look. I think we can probably just merge, and then point people to the "latest" version of the docs for the fix...

bcorrie commented 2 years ago

I believe this is addressed in #588 so closing this issue.