Use query params too for page adding handler

This commit is contained in:
2023-03-28 19:40:09 +03:00
parent 9dafdf6abf
commit be8f5e019c
10 changed files with 339 additions and 19 deletions

View File

@@ -23,11 +23,19 @@ curl -X POST --location "http://localhost:5001/pages" \
-d "{
\"url\": \"https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1937\",
\"formats\": [
\"all\"
\"pdf\",
\"headers\"
]
}" | jq .
```
or
```shell
curl -X POST --location \
"http://localhost:5001/pages?url=https%3A%2F%2Fgithub.com%2Fwkhtmltopdf%2Fwkhtmltopdf%2Fissues%2F1937&formats=pdf%2Cheaders&description=Foo+Bar"
```
#### 3. Get the page's info
```shell