| POST | /api/v1/marketplace/products |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CategoryName | body | string | Yes | |
| ProductName | body | string | Yes | |
| Supplier | body | string | Yes | |
| CompanyName | body | string | Yes | |
| RegionId | body | int | No | |
| CityId | body | int | No | |
| Description | body | string | Yes | |
| HomeDelivery | body | bool? | No | |
| Price | body | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Status | form | Status | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Message | form | string | Yes | |
| StatusCode | form | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/v1/marketplace/products HTTP/1.1
Host: pecuario-backend.develsystems.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"categoryName":"String","productName":"String","supplier":"String","companyName":"String","regionId":0,"cityId":0,"description":"String","homeDelivery":false,"price":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":"String"}