u
This commit is contained in:
40
docs/api/routes/labeltemplate/list.md
Normal file
40
docs/api/routes/labeltemplate/list.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# `GET /labeltemplate`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
List label templates
|
||||
|
||||
Lists all ZPL label templates for the selected company. The `thumb` field is always included inline as a base64-encoded 50×50 1-bit PNG string (`null` if not yet rendered).
|
||||
|
||||
## Response `200`
|
||||
|
||||
List of label templates
|
||||
|
||||
```json
|
||||
{
|
||||
"labeltemplates": [
|
||||
{
|
||||
"id": 1,
|
||||
"company_id": 1,
|
||||
"name": "…",
|
||||
"width": 448,
|
||||
"height": 200,
|
||||
"dpi": 203,
|
||||
"type": "zpl",
|
||||
"content": {},
|
||||
"thumb": "…"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 400 | No company selected — `{"error":"…"}` |
|
||||
| 401 | Unauthorized — `{"error":"…"}` |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user