POST api/Vendor/Add
Request Information
URI Parameters
None.
Body Parameters
VendorModel| Name | Description | Type | Additional information |
|---|---|---|---|
| name | string |
None. |
|
| branch_id | integer |
None. |
|
| branch_name | string |
None. |
|
| address | string |
None. |
|
| type | string |
None. |
|
| phone_no | string |
None. |
|
| vendor_clothes | Collection of VendorClothModel |
None. |
|
| id | integer |
None. |
|
| text | string |
None. |
|
| is_active | boolean |
None. |
|
| created_by | integer |
None. |
|
| created_date | date |
None. |
|
| updated_by | integer |
None. |
|
| updated_date | date |
None. |
|
| TotalRows | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"branch_id": 2,
"branch_name": "sample string 3",
"address": "sample string 4",
"type": "sample string 5",
"phone_no": "sample string 6",
"vendor_clothes": [
{
"id": 1,
"cloth_id": 2,
"cloth_name": "sample string 3",
"vendor_id": 4,
"service_id": 5,
"service_name": "sample string 6",
"amount": 7.0
},
{
"id": 1,
"cloth_id": 2,
"cloth_name": "sample string 3",
"vendor_id": 4,
"service_id": 5,
"service_name": "sample string 6",
"amount": 7.0
}
],
"id": 7,
"text": "sample string 8",
"is_active": true,
"created_by": 10,
"created_date": "2025-12-18T16:09:58.313266+05:00",
"updated_by": 12,
"updated_date": "2025-12-18T16:09:58.313266+05:00",
"TotalRows": 14
}
application/xml, text/xml
Sample:
<VendorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OneLaundry.Models">
<TotalRows xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">14</TotalRows>
<created_by xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">10</created_by>
<created_date xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">2025-12-18T16:09:58.313266+05:00</created_date>
<id xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">7</id>
<is_active xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">true</is_active>
<text xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">sample string 8</text>
<updated_by xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">12</updated_by>
<updated_date xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">2025-12-18T16:09:58.313266+05:00</updated_date>
<address>sample string 4</address>
<branch_id>2</branch_id>
<branch_name>sample string 3</branch_name>
<name>sample string 1</name>
<phone_no>sample string 6</phone_no>
<type>sample string 5</type>
<vendor_clothes>
<VendorClothModel>
<amount>7</amount>
<cloth_id>2</cloth_id>
<cloth_name>sample string 3</cloth_name>
<id>1</id>
<service_id>5</service_id>
<service_name>sample string 6</service_name>
<vendor_id>4</vendor_id>
</VendorClothModel>
<VendorClothModel>
<amount>7</amount>
<cloth_id>2</cloth_id>
<cloth_name>sample string 3</cloth_name>
<id>1</id>
<service_id>5</service_id>
<service_name>sample string 6</service_name>
<vendor_id>4</vendor_id>
</VendorClothModel>
</vendor_clothes>
</VendorModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.