POST api/VendorsAPI
Request Information
URI Parameters
None.
Body Parameters
VendorName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
Phone | string |
None. |
|
Address | string |
None. |
|
Note | string |
None. |
|
Debit | decimal number |
None. |
|
Credit | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "Phone": "sample string 3", "Address": "sample string 4", "Note": "sample string 5", "Debit": 6.1, "Credit": 7.1 }
application/xml, text/xml
Sample:
<Vendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ODOAPI.Models"> <Address>sample string 4</Address> <Credit>7.1</Credit> <Debit>6.1</Debit> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 5</Note> <Phone>sample string 3</Phone> </Vendor>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VendorName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
Phone | string |
None. |
|
Address | string |
None. |
|
Note | string |
None. |
|
Debit | decimal number |
None. |
|
Credit | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "Phone": "sample string 3", "Address": "sample string 4", "Note": "sample string 5", "Debit": 6.1, "Credit": 7.1 }
application/xml, text/xml
Sample:
<Vendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ODOAPI.Models"> <Address>sample string 4</Address> <Credit>7.1</Credit> <Debit>6.1</Debit> <Id>1</Id> <Name>sample string 2</Name> <Note>sample string 5</Note> <Phone>sample string 3</Phone> </Vendor>