POST api/AdminProduct/AddProduct
Request Information
URI Parameters
None.
Body Parameters
AddProductModelName | Description | Type | Additional information |
---|---|---|---|
ProductId | integer |
None. |
|
Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProductId": 1, "Name": "sample string 2" }
text/html
Sample:
{"ProductId":1,"Name":"sample string 2"}
application/xml, text/xml
Sample:
<AddProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAO.Models.Admin"> <Name>sample string 2</Name> <ProductId>1</ProductId> </AddProductModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ProductViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
CreatedOn | date |
None. |
|
ProductId | integer |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "CreatedOn": "2025-06-28T13:19:17.2919005Z", "ProductId": 3, "Name": "sample string 4" }, { "Id": 1, "CreatedOn": "2025-06-28T13:19:17.2919005Z", "ProductId": 3, "Name": "sample string 4" } ]
text/html
Sample:
[{"Id":1,"CreatedOn":"2025-06-28T13:19:17.2919005Z","ProductId":3,"Name":"sample string 4"},{"Id":1,"CreatedOn":"2025-06-28T13:19:17.2919005Z","ProductId":3,"Name":"sample string 4"}]
application/xml, text/xml
Sample:
<ArrayOfProductViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAO.Models.Admin"> <ProductViewModel> <Name>sample string 4</Name> <ProductId>3</ProductId> <CreatedOn>2025-06-28T13:19:17.2919005Z</CreatedOn> <Id>1</Id> </ProductViewModel> <ProductViewModel> <Name>sample string 4</Name> <ProductId>3</ProductId> <CreatedOn>2025-06-28T13:19:17.2919005Z</CreatedOn> <Id>1</Id> </ProductViewModel> </ArrayOfProductViewModel>