Files
dashback/docs/api/routes/pos/pimage.md
2026-10-06 11:19:33 +02:00

835 B

GET /v1/pimage

Protected. Requires a valid session cookie (credentials: 'include').

POS product image delivery

Returns product image by hash (path query param) scaled to preview size.

Query parameters

Param Required Type Description
path yes string SHA-256 hash of the product image
w no integer Max width
h no integer Max height
format no string Optional target format (defaults to jpeg/png or client Accept preference)

Response 200

Resized image binary

Errors

Status Description
304 Image not modified
400 Missing required query parameter 'path'
404 Image not found

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.