isamplesorg / isamples_inabox

Provides functionality intermediate to a collection and central
0 stars 1 forks source link

Asynchronous iSamples Result exporter #355

Closed dannymandel closed 3 months ago

dannymandel commented 4 months ago

This is what I get when I hit it locally:

(vocabulary) mandeld@Daniels-MacBook-Pro isamples_inabox % curl -v "http://localhost:8000/download/csv?q=foobar"
*   Trying [::1]:8000...
* connect to ::1 port 8000 failed: Connection refused
*   Trying 127.0.0.1:8000...
* Connected to localhost (127.0.0.1) port 8000
> GET /download/csv?q=foobar HTTP/1.1
> Host: localhost:8000
> User-Agent: curl/8.4.0
> Accept: */*
> 
< HTTP/1.1 201 Created
< date: Tue, 13 Feb 2024 22:40:21 GMT
< server: uvicorn
< content-length: 37
< content-type: application/json
< 
* Connection #0 to host localhost left intact
{"message":"data generation started"}%                                                                                                                                                                                                                                                                                                                                                  (vocabulary) mandeld@Daniels-MacBook-Pro isamples_inabox % cat /tmp/query.txt 
foobar%