POST api/User/AddUser
Request Information
URI Parameters
None.
Body Parameters
UserName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
string |
None. |
||
Mobile | string |
None. |
|
Address | string |
None. |
|
CityId | integer |
None. |
|
City | string |
None. |
|
StateId | integer |
None. |
|
State | string |
None. |
|
CountryId | integer |
None. |
|
Country | string |
None. |
|
Status | string |
None. |
|
Password | string |
None. |
|
Role | string |
None. |
|
ShippingAddress | string |
None. |
|
CreatedBy | string |
None. |
|
CreatedDate | string |
None. |
|
UpdatedBy | string |
None. |
|
UpdatedDate | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Email": "sample string 4", "Mobile": "sample string 5", "Address": "sample string 6", "CityId": 7, "City": "sample string 8", "StateId": 9, "State": "sample string 10", "CountryId": 11, "Country": "sample string 12", "Status": "sample string 13", "Password": "sample string 14", "Role": "sample string 15", "ShippingAddress": "sample string 16", "CreatedBy": "sample string 17", "CreatedDate": "sample string 18", "UpdatedBy": "sample string 19", "UpdatedDate": "sample string 20" }
application/xml, text/xml
Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models"> <Address>sample string 6</Address> <City>sample string 8</City> <CityId>7</CityId> <Country>sample string 12</Country> <CountryId>11</CountryId> <CreatedBy>sample string 17</CreatedBy> <CreatedDate>sample string 18</CreatedDate> <Email>sample string 4</Email> <FirstName>sample string 2</FirstName> <Id>1</Id> <LastName>sample string 3</LastName> <Mobile>sample string 5</Mobile> <Password>sample string 14</Password> <Role>sample string 15</Role> <ShippingAddress>sample string 16</ShippingAddress> <State>sample string 10</State> <StateId>9</StateId> <Status>sample string 13</Status> <UpdatedBy>sample string 19</UpdatedBy> <UpdatedDate>sample string 20</UpdatedDate> </User>
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.