mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
Documented missing search endpoint along with a new 'curl' example
This commit is contained in:
parent
fb7cbc423b
commit
df1e3f3404
|
@ -2451,6 +2451,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*'`
|
||||||
|
|
||||||
* bash: when curl and wget is not available or too boring
|
* bash: when curl and wget is not available or too boring
|
||||||
* `(printf 'PUT /junk?pw=wark HTTP/1.1\r\n\r\n'; cat movie.mkv) | nc 127.0.0.1 3923`
|
* `(printf 'PUT /junk?pw=wark HTTP/1.1\r\n\r\n'; cat movie.mkv) | nc 127.0.0.1 3923`
|
||||||
|
|
|
@ -198,9 +198,9 @@ authenticate using header `Cookie: cppwd=foo` or url param `&pw=foo`
|
||||||
| GET | `?th=opus` | convert audio file to 128kbps opus |
|
| GET | `?th=opus` | convert audio file to 128kbps opus |
|
||||||
| GET | `?th=caf` | ...in the iOS-proprietary container |
|
| GET | `?th=caf` | ...in the iOS-proprietary container |
|
||||||
|
|
||||||
| 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 |
|
||||||
|--|--|--|--|
|
|--|--|--|--|
|
||||||
|
|
Loading…
Reference in a new issue