POST api/Order/InsertOrder/{id}?cardNewId={cardNewId}&cardOnline={cardOnline}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

cardNewId

string

Required

cardOnline

string

Required

Body Parameters

Collection of ShoppingCart
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

Number

integer

None.

Price

decimal number

None.

OrderId

integer

None.

Size

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ProductId": 2,
    "Number": 3,
    "Price": 1.1,
    "OrderId": 4,
    "Size": "sample string 5"
  },
  {
    "Id": 1,
    "ProductId": 2,
    "Number": 3,
    "Price": 1.1,
    "OrderId": 4,
    "Size": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfShoppingCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMSApi.Model">
  <ShoppingCart>
    <Id>1</Id>
    <Number>3</Number>
    <OrderId>4</OrderId>
    <Price>1.1</Price>
    <ProductId>2</ProductId>
    <Size>sample string 5</Size>
  </ShoppingCart>
  <ShoppingCart>
    <Id>1</Id>
    <Number>3</Number>
    <OrderId>4</OrderId>
    <Price>1.1</Price>
    <ProductId>2</ProductId>
    <Size>sample string 5</Size>
  </ShoppingCart>
</ArrayOfShoppingCart>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.