SBarnes wrote:Hi Mike,
The ability to run reports and receive them back as a pdf would be a nice addition but more importantly would be the possibility of getting product images passed back say in the response stream.
Both however, may be beyond the strict definition of a REST API however most web carts would show product images and would give you the functionality to view invoices, orders and statements etc.
Hi Stuart,
Images we already handle - a GET on /Inventory or /Inventory/{InventoryID} will include the picture of the product as base64 encoded - and the POST and PATCH operations allow you to set the picture.
We also added pictures to inventory categories - and you can retrieve or set those much like inventory.
For cases where you want multiple pictures per product, just create a document type of "Image" or similar, and you can GET, POST and PATCH documents per product - so you can retrieve all the documents with a type of "image" for a product and this should achieve what you want.
As for reports returned as PDF - this should be pretty simple - I'll have a go at it.
Mike