BETYdb-YABA and its python client library provides an automated bulk upload to many BETYdb tables. API endpoints have been implemented to upload data to respective tables. For more information including examples for all endpoints and a link to the Swagger documentation, see the BETYdb-YABA README{target="_blank"}.
Here are some examples of how to hit Experiments and Sites endpoints:
- Experiments:
curl -F "fileName=@input_files/experiments.csv" \ http://localhost:5001/yaba/v1/experiments?username=guestuser
- Sites:
curl -F "fileName=@input_files/sites.csv" \ -F "shp_file=@input_files/S8_two_row_polys.shp" \ -F "dbf_file=@input_files/S8_two_row_polys.dbf" \ -F "prj_file=@input_files/S8_two_row_polys.prj" \ -F "shx_file=@input_files/S8_two_row_polys.shx" \ http://localhost:5001/yaba/v1/sites