u
This commit is contained in:
@@ -11,8 +11,24 @@ and stored with the template.
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `name` | yes | string | |
|
||||
| `width` | yes | number | |
|
||||
| `height` | yes | number | |
|
||||
| `dpi` | yes | integer | |
|
||||
| `type` | yes | string | |
|
||||
| `content` | yes | object | |
|
||||
|
||||
```json
|
||||
{}
|
||||
{
|
||||
"name": "…",
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"dpi": 1,
|
||||
"type": "…",
|
||||
"content": {}
|
||||
}
|
||||
```
|
||||
|
||||
## Response `201`
|
||||
@@ -21,7 +37,16 @@ Created label template
|
||||
|
||||
```json
|
||||
{
|
||||
"labeltemplate": {}
|
||||
"labeltemplate": {
|
||||
"id": 1,
|
||||
"name": "…",
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"dpi": 1,
|
||||
"type": "…",
|
||||
"content": {},
|
||||
"thumb": "…"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -18,7 +18,16 @@ Label template details
|
||||
|
||||
```json
|
||||
{
|
||||
"labeltemplate": {}
|
||||
"labeltemplate": {
|
||||
"id": 1,
|
||||
"name": "…",
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"dpi": 1,
|
||||
"type": "…",
|
||||
"content": {},
|
||||
"thumb": "…"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -13,7 +13,16 @@ List of label templates
|
||||
```json
|
||||
{
|
||||
"labeltemplates": [
|
||||
{}
|
||||
{
|
||||
"id": 1,
|
||||
"name": "…",
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"dpi": 1,
|
||||
"type": "…",
|
||||
"content": {},
|
||||
"thumb": "…"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
@@ -16,8 +16,24 @@ When `content` (or `width`/`height`) is provided, the thumbnail is automatically
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `name` | no | string | |
|
||||
| `width` | no | number | |
|
||||
| `height` | no | number | |
|
||||
| `dpi` | no | integer | |
|
||||
| `type` | no | string | |
|
||||
| `content` | no | object | |
|
||||
|
||||
```json
|
||||
{}
|
||||
{
|
||||
"name": "…",
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"dpi": 1,
|
||||
"type": "…",
|
||||
"content": {}
|
||||
}
|
||||
```
|
||||
|
||||
## Response `200`
|
||||
@@ -26,7 +42,16 @@ Updated label template
|
||||
|
||||
```json
|
||||
{
|
||||
"labeltemplate": {}
|
||||
"labeltemplate": {
|
||||
"id": 1,
|
||||
"name": "…",
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"dpi": 1,
|
||||
"type": "…",
|
||||
"content": {},
|
||||
"thumb": "…"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user