POST api/productimages/productid
Request Information
URI Parameters
None.
Body Parameters
productImageRequestName | Description | Type | Additional information |
---|---|---|---|
productid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "productid": 1 }
application/xml, text/xml
Sample:
<AppController.productImageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agribkWebAPI.Controllers"> <productid>1</productid> </AppController.productImageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of productimageName | Description | Type | Additional information |
---|---|---|---|
productimageid | integer |
None. |
|
productid | integer |
None. |
|
blob | Binary |
None. |
|
contenttype | string |
None. |
|
order | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "productimageid": 1, "productid": 2, "blob": null, "contenttype": "sample string 3", "order": 4 }, { "productimageid": 1, "productid": 2, "blob": null, "contenttype": "sample string 3", "order": 4 } ]
application/xml, text/xml
Sample:
<ArrayOfproductimage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/agribkWebAPI.Models"> <productimage> <blob xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Data.Linq" i:nil="true" /> <contenttype>sample string 3</contenttype> <order>4</order> <productid>2</productid> <productimageid>1</productimageid> </productimage> <productimage> <blob xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Data.Linq" i:nil="true" /> <contenttype>sample string 3</contenttype> <order>4</order> <productid>2</productid> <productimageid>1</productimageid> </productimage> </ArrayOfproductimage>