POST API/Basket/AddSoldProduct

Request Information

URI Parameters

None.

Body Parameters

Sold
NameDescriptionTypeAdditional information
ID

integer

None.

saleID

integer

None.

quantity

integer

None.

size

string

None.

productID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "saleID": 2,
  "quantity": 3,
  "size": "sample string 4",
  "productID": 5
}

application/xml, text/xml

Sample:
<Sold xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <ID>1</ID>
  <productID>5</productID>
  <quantity>3</quantity>
  <saleID>2</saleID>
  <size>sample string 4</size>
</Sold>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Sold'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.