POST api/Users

Request Information

URI Parameters

None.

Body Parameters

RegisterUserViewModel
NameDescriptionTypeAdditional information
last_name

string

None.

first_name

string

None.

local_number

string

None.

role

string

None.

email

string

None.

phone_number

string

None.

username

string

None.

password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "last_name": "sample string 1",
  "first_name": "sample string 2",
  "local_number": "sample string 3",
  "role": "sample string 4",
  "email": "sample string 5",
  "phone_number": "sample string 6",
  "username": "sample string 7",
  "password": "sample string 8"
}

application/xml, text/xml

Sample:
<RegisterUserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UniteHere.ElectionApp.ViewModels">
  <Email>sample string 5</Email>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 1</LastName>
  <LocalNumber>sample string 3</LocalNumber>
  <Password>sample string 8</Password>
  <PhoneNumber>sample string 6</PhoneNumber>
  <Role>sample string 4</Role>
  <UserName>sample string 7</UserName>
</RegisterUserViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.