qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.11k stars 66 forks source link

feat(api): POST a body file to the new `/ds/save/form` endpoint to create a dataset #1978

Closed ramfox closed 2 years ago

ramfox commented 2 years ago

Added /ds/save/upload endpoint as a "sugar" endpoint to our API. The SaveByUploadHandler assumes that all parts of the lib.SaveParams will come from the multipart form.

To test via curl:

curl -X POST -F ref=peername/dataset_name -F bodyFile=@my_new_body_file.csv localhost:2503/ds/save/upload