POST api/appimage/preparenew

Request Information

URI Parameters

None.

Body Parameters

Collection of KeyValue
NameDescriptionTypeAdditional information
Id

integer

Required

Value

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Value": "sample string 2"
  },
  {
    "Id": 1,
    "Value": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfKeyValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <KeyValue>
    <Id>1</Id>
    <Value>sample string 2</Value>
  </KeyValue>
  <KeyValue>
    <Id>1</Id>
    <Value>sample string 2</Value>
  </KeyValue>
</ArrayOfKeyValue>

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

AppImage
NameDescriptionTypeAdditional information
Id

integer

Required

RowGuid

globally unique identifier

Required

ImageKey

string

None.

ImageMimeTyp

string

None.

Description

string

None.

ImageData

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RowGuid": "8d44fdef-5ab8-4056-a8d4-149d340ae5f2",
  "ImageKey": "sample string 3",
  "ImageMimeTyp": "sample string 4",
  "Description": "sample string 5",
  "ImageData": "sample string 6"
}

application/xml, text/xml

Sample:
<AppImage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <Description>sample string 5</Description>
  <Id>1</Id>
  <ImageData>sample string 6</ImageData>
  <ImageKey>sample string 3</ImageKey>
  <ImageMimeTyp>sample string 4</ImageMimeTyp>
  <RowGuid>8d44fdef-5ab8-4056-a8d4-149d340ae5f2</RowGuid>
</AppImage>