POST api/Vendor/AddVendor

Request Information

URI Parameters

None.

Body Parameters

Vendor
NameDescriptionTypeAdditional information
Vendor_Id

integer

None.

Name

string

None.

Company

string

None.

Address

string

None.

Mobile

string

None.

Email

string

None.

Type

string

None.

Logo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Vendor_Id": 1,
  "Name": "sample string 2",
  "Company": "sample string 3",
  "Address": "sample string 4",
  "Mobile": "sample string 5",
  "Email": "sample string 6",
  "Type": "sample string 7",
  "Logo": "sample string 8"
}

application/octet-stream

Sample:
{"$id":"1","Vendor_Id":1,"Name":"sample string 2","Company":"sample string 3","Address":"sample string 4","Mobile":"sample string 5","Email":"sample string 6","Type":"sample string 7","Logo":"sample string 8"}

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 'Vendor'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/octet-stream

Sample:

Sample not available.