Skip to content

Commit cfe5836

Browse files
Merge pull request #793 from ka-mp-6765/master
updated documentation : file import via api examples
2 parents e43bb84 + 4d70b23 commit cfe5836

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,23 @@ EOF
370370
The generic upload endpoint takes the recording as body. Prepend the path with
371371
`@` to tell `curl` to read the data from a file:
372372

373+
If you are uploading a GPX file (default):
374+
373375
```bash
374376
curl -sSL -H "Authorization: bearer your-api-key" \
375377
http://localhost:8080/api/v1/import/generic \
376378
--data @path/to/recorded.gpx
377379
```
378380

381+
If you upload FIT files or other file types, including GPX, include a query
382+
paramter `name`:
383+
384+
```bash
385+
curl -sSL -H "Authorization: bearer your-api-key" \
386+
http://localhost:8080/api/v1/import/generic?name=recorded.fit \
387+
--data @path/to/recorded.fit
388+
```
389+
379390
#### FitoTrack automatic GPX export
380391

381392
Read

0 commit comments

Comments
 (0)