POST v2/VendorManagement

Request Information

URI Parameters

None.

Body Parameters

VendorViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

ImageId

integer

None.

VendorLevel

VendorLevel

None.

VendorLevelDisplay

string

None.

Image

ImageModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "ImageId": 3,
  "VendorLevel": 0,
  "VendorLevelDisplay": "sample string 4",
  "Image": {
    "Name": "sample string 1",
    "Data": "sample string 2",
    "Extension": "sample string 3",
    "Height": 4,
    "Width": 5
  }
}

application/xml, text/xml

Sample:
<VendorViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Areas.Vendors.Models">
  <Id>1</Id>
  <Image xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Models">
    <d2p1:Data>sample string 2</d2p1:Data>
    <d2p1:Extension>sample string 3</d2p1:Extension>
    <d2p1:Height>4</d2p1:Height>
    <d2p1:Name>sample string 1</d2p1:Name>
    <d2p1:Width>5</d2p1:Width>
  </Image>
  <ImageId>3</ImageId>
  <Name>sample string 2</Name>
  <VendorLevel>Default</VendorLevel>
  <VendorLevelDisplay>sample string 4</VendorLevelDisplay>
</VendorViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.