REFERENCE
Get a picture
GET/v1/images/{file}
A medicine's picture, at the address product_image gives. It needs no key, so an <img> tag can show it. The file never changes, so it can be cached for a year.
Requestcurl, no key
curl -o napa.jpg \ https://api.oushodh.dev/v1/images/50d858e0985ecc7f60418aaf0cc5ab587f42c2570a884095a9e8ccacd0f6545c.jpg
Path parameter
file is required.- The picture's SHA-256 and its kind:
filestring, required.jpg,.pngor.webp.
Response
The picture, as a JPEG file.
Response200
Content-Type: image/jpeg Cache-Control: public, max-age=31536000, immutable (the picture)
Errors
Each error has a code and a message.
404 not_foundNo picture has that name.