u
This commit is contained in:
@@ -4,7 +4,7 @@ Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
POS category image delivery
|
||||
|
||||
Returns category image by hash (`path` query param) scaled to preview size (padded to 1:1 with adaptive aspect-ratio borders: thinner borders for vertical images, wider borders for horizontal images).
|
||||
Returns category image by hash (`path` query param) scaled to preview size (padded to 1:1 with white background).
|
||||
|
||||
|
||||
## Query parameters
|
||||
@@ -12,9 +12,9 @@ Returns category image by hash (`path` query param) scaled to preview size (padd
|
||||
| Param | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `path` | yes | string | SHA-256 hash of the category image |
|
||||
| `size` | no | integer | Max dimension (width & height) |
|
||||
| `w` | no | integer | Max width |
|
||||
| `h` | no | integer | Max height |
|
||||
| `size` | no | integer | Max dimension (width & height, capped to 200) |
|
||||
| `w` | no | integer | Max width (capped to 200) |
|
||||
| `h` | no | integer | Max height (capped to 200) |
|
||||
| `format` | no | string | Optional target format (defaults to jpeg/png or client Accept preference) |
|
||||
|
||||
## Response `200`
|
||||
|
||||
Reference in New Issue
Block a user