This commit is contained in:
Cruz Monrreal 2026-01-11 06:23:10 +01:00 committed by GitHub
commit ef5e585e20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -2686,6 +2686,8 @@ interact with copyparty using non-browser clients
`post movie.mkv` `post movie.mkv`
* `chunk(){ curl -H pw:wark -T- http://127.0.0.1:3923/;}` * `chunk(){ curl -H pw:wark -T- http://127.0.0.1:3923/;}`
`chunk <movie.mkv` `chunk <movie.mkv`
* `search() { curl -H "Content-Type: application/json" -X POST --data '{"n":42,"q":"'"${1}"'"}' http://127.0.0.1:3923?srch; }`
`search 'name like *.jpg*'`
* curl: append to existing file with `?apnd` * curl: append to existing file with `?apnd`
* `log(){ curl -H pw:wark -T- http://127.0.0.1:3923/logfile.txt?apnd;}` * `log(){ curl -H pw:wark -T- http://127.0.0.1:3923/logfile.txt?apnd;}`

View file

@ -207,9 +207,9 @@ clients can authenticate in the following ways; the first of these which is not
| GET | `?zls` | get listing of filepaths in zip file at URL | | GET | `?zls` | get listing of filepaths in zip file at URL |
| GET | `?zget=path` | get specific file from inside a zip file at URL | | GET | `?zget=path` | get specific file from inside a zip file at URL |
| method | body | result | | method | params | body | result |
|--|--|--| |--|--|--|--|
| jPOST | `{"q":"foo"}` | do a server-wide search; see the `[🔎]` search tab `raw` field for syntax | | jPOST | `?srch` | `{"n":42,"q":"foo"}` | do a server-wide search; see the `[🔎]` search tab `raw` field for syntax |
| method | params | body | result | | method | params | body | result |
|--|--|--|--| |--|--|--|--|