POST api/Users

Request Information

URI Parameters

None.

Body Parameters

User
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

PhoneNo

string

None.

UserName

string

None.

Password

string

None.

AssemblyId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "PhoneNo": "sample string 3",
  "UserName": "sample string 4",
  "Password": "sample string 5",
  "AssemblyId": 6
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/findmyvote_api.DBContext">
  <AssemblyId>6</AssemblyId>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <Password>sample string 5</Password>
  <PhoneNo>sample string 3</PhoneNo>
  <UserName>sample string 4</UserName>
</User>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

User
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

PhoneNo

string

None.

UserName

string

None.

Password

string

None.

AssemblyId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "PhoneNo": "sample string 3",
  "UserName": "sample string 4",
  "Password": "sample string 5",
  "AssemblyId": 6
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/findmyvote_api.DBContext">
  <AssemblyId>6</AssemblyId>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <Password>sample string 5</Password>
  <PhoneNo>sample string 3</PhoneNo>
  <UserName>sample string 4</UserName>
</User>