POST api/Publisher/CreatePublisher
Request Information
URI Parameters
None.
Body Parameters
PublisherDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Address | string |
None. |
|
| PhoneNumber | string |
None. |
|
| ProductCount | integer |
None. |
|
| UserCount | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Address": "sample string 3",
"PhoneNumber": "sample string 4",
"ProductCount": 5,
"UserCount": 6
}
text/html
Sample:
{"Id":1,"Name":"sample string 2","Address":"sample string 3","PhoneNumber":"sample string 4","ProductCount":5,"UserCount":6}
application/xml, text/xml
Sample:
<PublisherDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mediahuis.Models.Publisher"> <Address>sample string 3</Address> <Id>1</Id> <Name>sample string 2</Name> <PhoneNumber>sample string 4</PhoneNumber> <ProductCount>5</ProductCount> <UserCount>6</UserCount> </PublisherDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.