mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
docs: section-prefix tool API endpoints
This commit is contained in:
@@ -8,7 +8,7 @@ Stamp a text watermark on every page of a PDF with configurable position, size,
|
||||
|
||||
## API Endpoint
|
||||
|
||||
`POST /api/v1/tools/watermark-pdf`
|
||||
`POST /api/v1/tools/pdf/watermark-pdf`
|
||||
|
||||
Accepts multipart form data with a PDF file and a JSON `settings` field.
|
||||
|
||||
@@ -31,7 +31,7 @@ Accepts multipart form data with a PDF file and a JSON `settings` field.
|
||||
## Example Request
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/watermark-pdf \
|
||||
curl -X POST http://localhost:1349/api/v1/tools/pdf/watermark-pdf \
|
||||
-H "Authorization: Bearer si_your-api-key" \
|
||||
-F "file=@document.pdf" \
|
||||
-F 'settings={"text": "CONFIDENTIAL", "position": "c", "opacity": 0.2, "rotation": 45}'
|
||||
|
||||
Reference in New Issue
Block a user