POST api/AddArtwork

Request Information

URI Parameters

None.

Body Parameters

Collection of ArtDat
NameDescriptionTypeAdditional information
DeviceID

string

None.

ArtworkID

string

None.

ArtworkType

string

None.

Size

string

None.

Position

string

None.

Price

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "DeviceID": "sample string 1",
    "ArtworkID": "sample string 2",
    "ArtworkType": "sample string 3",
    "Size": "sample string 4",
    "Position": "sample string 5",
    "Price": 6.0
  },
  {
    "DeviceID": "sample string 1",
    "ArtworkID": "sample string 2",
    "ArtworkType": "sample string 3",
    "Size": "sample string 4",
    "Position": "sample string 5",
    "Price": 6.0
  }
]

text/xml

Sample:
<ArrayOfArtDat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WoApp.Controllers">
  <ArtDat>
    <ArtworkID>sample string 2</ArtworkID>
    <ArtworkType>sample string 3</ArtworkType>
    <DeviceID>sample string 1</DeviceID>
    <Position>sample string 5</Position>
    <Price>6</Price>
    <Size>sample string 4</Size>
  </ArtDat>
  <ArtDat>
    <ArtworkID>sample string 2</ArtworkID>
    <ArtworkType>sample string 3</ArtworkType>
    <DeviceID>sample string 1</DeviceID>
    <Position>sample string 5</Position>
    <Price>6</Price>
    <Size>sample string 4</Size>
  </ArtDat>
</ArrayOfArtDat>

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

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.