mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(i18n): 21-language pipeline, landing/docs/API wiring, landing+API translations
Shared Claude Code translation pipeline (scripts/i18n, no API key) plus Astro/VitePress/Scalar i18n wiring. Landing and API reference translated into all 20 languages; docs i18n wiring + English source anchors. The translated docs markdown (apps/docs/<locale>/**, 3,620 files) follows in a companion PR because it exceeds GitHub's per-PR CI file limit.
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
description: Create bar, line, or pie charts from CSV or JSON data.
|
||||
---
|
||||
|
||||
# Chart Maker
|
||||
# Chart Maker {#chart-maker}
|
||||
|
||||
Create bar, line, or pie charts from CSV or JSON data. Returns a PNG image of the rendered chart.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/chart-maker`
|
||||
|
||||
Accepts multipart form data with a CSV or JSON file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
@@ -21,7 +21,7 @@ Accepts multipart form data with a CSV or JSON file and a JSON `settings` field.
|
||||
| width | integer | No | `960` | Chart width in pixels (320-2048) |
|
||||
| height | integer | No | `540` | Chart height in pixels (240-1536) |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/chart-maker \
|
||||
@@ -30,7 +30,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/chart-maker \
|
||||
-F 'settings={"kind": "line", "title": "Monthly Sales", "width": 960, "height": 540}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -41,7 +41,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/chart-maker \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Input must be a `.csv` or `.json` file. CSV files should have a header row with column names.
|
||||
- The first column is used as the category label; the second column must be numeric and provides the data values. Only two columns are used.
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
description: Convert between Word, OpenDocument, RTF, and plain text formats.
|
||||
---
|
||||
|
||||
# Convert Document
|
||||
# Convert Document {#convert-document}
|
||||
|
||||
Convert documents between Word (DOCX), OpenDocument (ODT), RTF, and plain text formats using LibreOffice.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/convert-document`
|
||||
|
||||
Accepts multipart form data with a Word/ODT/RTF/TXT file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
| format | string | Yes | - | Output format: `docx`, `odt`, `rtf`, `txt` |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/convert-document \
|
||||
@@ -27,7 +27,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/convert-document \
|
||||
-F 'settings={"format": "odt"}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -38,7 +38,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.docx`, `.doc`, `.odt`, `.rtf`, `.txt`.
|
||||
- Conversion is handled by LibreOffice running headless on the server.
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
description: Convert between PowerPoint and OpenDocument presentation formats.
|
||||
---
|
||||
|
||||
# Convert Presentation
|
||||
# Convert Presentation {#convert-presentation}
|
||||
|
||||
Convert presentations between PowerPoint (PPTX) and OpenDocument Presentation (ODP) formats.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/convert-presentation`
|
||||
|
||||
Accepts multipart form data with a PowerPoint/ODP file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
| format | string | Yes | - | Output format: `pptx`, `odp` |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/convert-presentation \
|
||||
@@ -27,7 +27,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/convert-presentation \
|
||||
-F 'settings={"format": "odp"}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -38,7 +38,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.pptx`, `.ppt`, `.odp`.
|
||||
- Conversion is handled by LibreOffice running headless on the server.
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
description: Convert between Excel, OpenDocument, and CSV formats.
|
||||
---
|
||||
|
||||
# Convert Spreadsheet
|
||||
# Convert Spreadsheet {#convert-spreadsheet}
|
||||
|
||||
Convert spreadsheets between Excel (XLSX), OpenDocument Spreadsheet (ODS), and CSV formats. Multi-sheet workbooks export the first sheet when converting to CSV.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/convert-spreadsheet`
|
||||
|
||||
Accepts multipart form data with an Excel/ODS/CSV file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
| format | string | Yes | - | Output format: `xlsx`, `ods`, `csv` |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/convert-spreadsheet \
|
||||
@@ -27,7 +27,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/convert-spreadsheet \
|
||||
-F 'settings={"format": "csv"}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -38,7 +38,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.xlsx`, `.xls`, `.ods`, `.csv`.
|
||||
- When converting a multi-sheet workbook to CSV, only the first sheet is exported.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Bundle multiple files into a single ZIP archive.
|
||||
---
|
||||
|
||||
# Create ZIP
|
||||
# Create ZIP {#create-zip}
|
||||
|
||||
Bundle multiple files of any type into a single ZIP archive. Duplicate filenames are automatically deduplicated.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/create-zip`
|
||||
|
||||
Accepts multipart form data with two or more files. No settings field is required.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload 2-50 files of any type to bundle.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/create-zip \
|
||||
@@ -26,7 +26,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/create-zip \
|
||||
-F "file=@photo.jpg"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -37,7 +37,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/create-zip \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Requires between 2 and 50 input files.
|
||||
- Any file type is accepted; there are no restrictions on input format.
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
description: Convert between CSV and Excel (XLSX), both directions.
|
||||
---
|
||||
|
||||
# CSV to Excel
|
||||
# CSV to Excel {#csv-to-excel}
|
||||
|
||||
Convert between CSV and Excel (XLSX) formats in both directions. Upload a CSV or TSV file to get XLSX, or upload an XLSX file to get CSV.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/csv-excel`
|
||||
|
||||
Accepts multipart form data with a CSV, TSV, or XLSX file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
| sheet | integer | No | `1` | Worksheet number to export when converting from XLSX (min 1) |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
CSV to Excel:
|
||||
|
||||
@@ -38,7 +38,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/csv-excel \
|
||||
-F 'settings={"sheet": 2}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -49,7 +49,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/csv-excel \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Conversion direction is auto-detected from the input file extension: `.csv` or `.tsv` produces `.xlsx`, and `.xlsx` produces `.csv`.
|
||||
- The `sheet` parameter only applies when converting from XLSX. It selects which worksheet to export.
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
description: Convert between CSV and JSON, both directions.
|
||||
---
|
||||
|
||||
# CSV to JSON
|
||||
# CSV to JSON {#csv-to-json}
|
||||
|
||||
Convert between CSV and JSON formats in both directions. Upload a CSV or TSV file to get a JSON array of objects, or upload a JSON array to get a CSV file.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/csv-json`
|
||||
|
||||
Accepts multipart form data with a CSV, TSV, or JSON file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
| pretty | boolean | No | `true` | Pretty-print JSON output with indentation |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
CSV to JSON:
|
||||
|
||||
@@ -38,7 +38,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/csv-json \
|
||||
-F 'settings={}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -49,7 +49,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/csv-json \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Conversion direction is auto-detected from the input file extension: `.csv` or `.tsv` produces `.json`, and `.json` produces `.csv`.
|
||||
- The `pretty` parameter only affects JSON output. When set to `false`, the output is a compact single-line JSON string.
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
description: Convert an EPUB to PDF, DOCX, HTML, or Markdown.
|
||||
---
|
||||
|
||||
# Convert EPUB
|
||||
# Convert EPUB {#convert-epub}
|
||||
|
||||
Convert an EPUB e-book to PDF, Word (DOCX), HTML, or Markdown. Remote resources inside the book are not fetched.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/epub-convert`
|
||||
|
||||
Accepts multipart form data with an EPUB file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
| format | string | Yes | - | Output format: `pdf`, `docx`, `html`, `md` |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/epub-convert \
|
||||
@@ -27,7 +27,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/epub-convert \
|
||||
-F 'settings={"format": "pdf"}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -38,7 +38,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input format: `.epub`.
|
||||
- Remote resources embedded in the EPUB (external images, fonts) are not fetched for security.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert spreadsheets to PDF.
|
||||
---
|
||||
|
||||
# Excel to PDF
|
||||
# Excel to PDF {#excel-to-pdf}
|
||||
|
||||
Convert Excel, OpenDocument, or CSV spreadsheets to PDF. Wide sheets may paginate across multiple pages.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/excel-to-pdf`
|
||||
|
||||
Accepts multipart form data with an Excel/ODS/CSV file.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload a spreadsheet and it will be converted to PDF.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/excel-to-pdf \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/excel-to-pdf \
|
||||
-F "file=@budget.xlsx"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -35,7 +35,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.xlsx`, `.xls`, `.ods`, `.csv`.
|
||||
- Wide sheets may be split across multiple pages in the resulting PDF.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Safely extract files from a ZIP archive with bomb protection.
|
||||
---
|
||||
|
||||
# Extract ZIP
|
||||
# Extract ZIP {#extract-zip}
|
||||
|
||||
Safely extract files from a ZIP archive. Single-file archives return the contained file directly; multi-file archives return a flat ZIP with the extracted contents.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/extract-zip`
|
||||
|
||||
Accepts multipart form data with a ZIP file. No settings field is required.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload a `.zip` file to extract.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/extract-zip \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/extract-zip \
|
||||
-F "file=@archive.zip"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -35,7 +35,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/extract-zip \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Only `.zip` files are accepted as input.
|
||||
- If the archive contains a single file, that file is returned directly (not wrapped in a ZIP).
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert an HTML file to PDF.
|
||||
---
|
||||
|
||||
# HTML to PDF
|
||||
# HTML to PDF {#html-to-pdf}
|
||||
|
||||
Convert an HTML file to a styled PDF document. Remote resources (external images, stylesheets, scripts) are disabled for privacy.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/html-to-pdf`
|
||||
|
||||
Accepts multipart form data with an HTML file.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload an HTML file and it will be converted to PDF.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/html-to-pdf \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/html-to-pdf \
|
||||
-F "file=@page.html"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -35,7 +35,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.html`, `.htm`.
|
||||
- Remote resources (images, stylesheets, scripts referenced via URLs) are not fetched for privacy and security.
|
||||
|
||||
@@ -2,23 +2,23 @@
|
||||
description: Convert between JSON and XML, both directions.
|
||||
---
|
||||
|
||||
# JSON to XML
|
||||
# JSON to XML {#json-to-xml}
|
||||
|
||||
Convert between JSON and XML formats in both directions. Upload a JSON file to get XML, or upload an XML file to get JSON.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/json-xml`
|
||||
|
||||
Accepts multipart form data with a JSON or XML file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
| pretty | boolean | No | `true` | Pretty-print output with indentation |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
JSON to XML:
|
||||
|
||||
@@ -38,7 +38,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/json-xml \
|
||||
-F 'settings={"pretty": true}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -49,7 +49,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/json-xml \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Conversion direction is auto-detected from the input file extension: `.json` produces `.xml`, and `.xml` produces `.json`.
|
||||
- The `pretty` parameter applies to both directions. When `false`, the output is compact with no indentation.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert a Markdown file to a Word document (DOCX).
|
||||
---
|
||||
|
||||
# Markdown to Word
|
||||
# Markdown to Word {#markdown-to-word}
|
||||
|
||||
Convert a Markdown file to a Word document (DOCX), preserving headings, lists, code blocks, and other formatting.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/markdown-to-docx`
|
||||
|
||||
Accepts multipart form data with a Markdown file.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload a Markdown file and it will be converted to DOCX.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-docx \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-docx \
|
||||
-F "file=@README.md"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -35,7 +35,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-docx \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.md`, `.markdown`.
|
||||
- This is a fast (synchronous) tool that returns the result directly.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert a Markdown file to a standalone HTML page.
|
||||
---
|
||||
|
||||
# Markdown to HTML
|
||||
# Markdown to HTML {#markdown-to-html}
|
||||
|
||||
Convert a Markdown file to a standalone HTML page. Remote images referenced in the source are left as-is in the output.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/markdown-to-html`
|
||||
|
||||
Accepts multipart form data with a Markdown file.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload a Markdown file and it will be converted to HTML.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-html \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-html \
|
||||
-F "file=@notes.md"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -35,7 +35,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-html \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.md`, `.markdown`.
|
||||
- This is a fast (synchronous) tool that returns the result directly.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert a Markdown file to a styled PDF.
|
||||
---
|
||||
|
||||
# Markdown to PDF
|
||||
# Markdown to PDF {#markdown-to-pdf}
|
||||
|
||||
Convert a Markdown file to a styled PDF document. Remote resources are disabled for privacy.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/markdown-to-pdf`
|
||||
|
||||
Accepts multipart form data with a Markdown file.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload a Markdown file and it will be converted to PDF.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-pdf \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/markdown-to-pdf \
|
||||
-F "file=@document.md"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -35,7 +35,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.md`, `.markdown`.
|
||||
- Remote resources (images, stylesheets referenced via URLs) are not fetched for privacy and security.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Combine multiple CSV or TSV files with matching columns into one.
|
||||
---
|
||||
|
||||
# Merge CSVs
|
||||
# Merge CSVs {#merge-csvs}
|
||||
|
||||
Combine multiple CSV or TSV files with matching columns into a single merged file. All input files must have the same column headers.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/merge-csvs`
|
||||
|
||||
Accepts multipart form data with two or more CSV files. No settings field is required.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload 2-20 CSV or TSV files with matching column headers.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/merge-csvs \
|
||||
@@ -26,7 +26,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/merge-csvs \
|
||||
-F "file=@march.csv"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -37,7 +37,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/merge-csvs \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Requires between 2 and 20 input files.
|
||||
- All files must share the same column headers. The merge will fail if columns do not match.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert presentations to PDF.
|
||||
---
|
||||
|
||||
# PowerPoint to PDF
|
||||
# PowerPoint to PDF {#powerpoint-to-pdf}
|
||||
|
||||
Convert PowerPoint or OpenDocument presentations to PDF, with one slide per page.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/powerpoint-to-pdf`
|
||||
|
||||
Accepts multipart form data with a PowerPoint/ODP file.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload a presentation and it will be converted to PDF.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/powerpoint-to-pdf \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/powerpoint-to-pdf \
|
||||
-F "file=@slides.pptx"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -35,7 +35,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.pptx`, `.ppt`, `.odp`.
|
||||
- Each slide becomes one page in the PDF.
|
||||
|
||||
@@ -2,24 +2,24 @@
|
||||
description: Split a CSV into smaller files by row count.
|
||||
---
|
||||
|
||||
# Split CSV
|
||||
# Split CSV {#split-csv}
|
||||
|
||||
Split a large CSV or TSV file into smaller files by row count. Returns a ZIP archive containing the parts.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/split-csv`
|
||||
|
||||
Accepts multipart form data with a CSV file and a JSON `settings` field.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
| Parameter | Type | Required | Default | Description |
|
||||
|-----------|------|----------|---------|-------------|
|
||||
| rowsPerFile | integer | No | `1000` | Number of data rows per output file (1-1,000,000) |
|
||||
| keepHeader | boolean | No | `true` | Repeat the header row in each output file |
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/split-csv \
|
||||
@@ -28,7 +28,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/split-csv \
|
||||
-F 'settings={"rowsPerFile": 500, "keepHeader": true}'
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -39,7 +39,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/split-csv \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Output is always a ZIP archive containing the split CSV parts, named sequentially (e.g. `part-1.csv`, `part-2.csv`).
|
||||
- When `keepHeader` is `true`, each part includes the original header row so each file can be used independently.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert Word, Markdown, HTML, or plain text files to EPUB.
|
||||
---
|
||||
|
||||
# Convert to EPUB
|
||||
# Convert to EPUB {#convert-to-epub}
|
||||
|
||||
Convert Word documents, Markdown, HTML, or plain text files into the EPUB e-book format.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/to-epub`
|
||||
|
||||
Accepts multipart form data with a Word/Markdown/HTML/TXT file.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload a document and it will be converted to EPUB.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/to-epub \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/to-epub \
|
||||
-F "file=@manuscript.docx"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -35,7 +35,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.docx`, `.md`, `.html`, `.txt`.
|
||||
- The EPUB output follows the EPUB 3 specification.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert Word documents to PDF.
|
||||
---
|
||||
|
||||
# Word to PDF
|
||||
# Word to PDF {#word-to-pdf}
|
||||
|
||||
Convert Word documents, OpenDocument text, RTF, or plain text files to PDF.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/word-to-pdf`
|
||||
|
||||
Accepts multipart form data with a Word/ODT/RTF/TXT file.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. Upload a document and it will be converted to PDF.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/word-to-pdf \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/word-to-pdf \
|
||||
-F "file=@report.docx"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress`.
|
||||
|
||||
@@ -35,7 +35,7 @@ Returns `202 Accepted`. Track progress via SSE at `/api/v1/jobs/{jobId}/progress
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Accepted input formats: `.docx`, `.doc`, `.odt`, `.rtf`, `.txt`.
|
||||
- Conversion is handled by LibreOffice running headless on the server.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Extract repeating elements from XML into a CSV table.
|
||||
---
|
||||
|
||||
# XML to CSV
|
||||
# XML to CSV {#xml-to-csv}
|
||||
|
||||
Extract repeating elements from an XML file into a flat CSV table. The tool automatically finds the first array of objects in the XML tree and maps each element to a row.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/xml-to-csv`
|
||||
|
||||
Accepts multipart form data with an XML file. No settings field is required.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. The repeating element is auto-detected from the XML structure.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:1349/api/v1/tools/files/xml-to-csv \
|
||||
@@ -24,7 +24,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/xml-to-csv \
|
||||
-F "file=@catalog.xml"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -35,7 +35,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/xml-to-csv \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Only `.xml` files are accepted as input.
|
||||
- The tool scans the XML tree for the first repeating set of sibling elements and uses those as rows.
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
description: Convert between YAML and JSON, both directions.
|
||||
---
|
||||
|
||||
# YAML / JSON
|
||||
# YAML / JSON {#yaml-json}
|
||||
|
||||
Convert between YAML and JSON formats in both directions. Upload a YAML file to get JSON, or upload a JSON file to get YAML.
|
||||
|
||||
## API Endpoint
|
||||
## API Endpoint {#api-endpoint}
|
||||
|
||||
`POST /api/v1/tools/files/yaml-json`
|
||||
|
||||
Accepts multipart form data with a YAML or JSON file. No settings field is required.
|
||||
|
||||
## Parameters
|
||||
## Parameters {#parameters}
|
||||
|
||||
This tool has no configurable parameters. The conversion direction is determined by the input file extension.
|
||||
|
||||
## Example Request
|
||||
## Example Request {#example-request}
|
||||
|
||||
YAML to JSON:
|
||||
|
||||
@@ -34,7 +34,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/yaml-json \
|
||||
-F "file=@config.json"
|
||||
```
|
||||
|
||||
## Example Response
|
||||
## Example Response {#example-response}
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -45,7 +45,7 @@ curl -X POST http://localhost:1349/api/v1/tools/files/yaml-json \
|
||||
}
|
||||
```
|
||||
|
||||
## Notes
|
||||
## Notes {#notes}
|
||||
|
||||
- Conversion direction is auto-detected from the input file extension: `.yaml` or `.yml` produces `.json`, and `.json` produces `.yaml`.
|
||||
- Both `.yaml` and `.yml` extensions are accepted.
|
||||
|
||||
Reference in New Issue
Block a user