POST api/account/session

Войти на сайт по логину/паролю

Request Information

URI Parameters

None.

Body Parameters

Входные параметры

LoginUserBindingModel
NameDescriptionTypeAdditional information
Username

На данный момент именем пользователя является его почтовый адрес

string

Required

Password

Пароль (plain text)

string

Data type: Password

PasswordHash

Хеш пароля (plain text)

string

Data type: Password

RememberMe

boolean

None.

Mobile

Мобильная аутентификация

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "username": "sample string 1",
  "password": "sample string 2",
  "passwordHash": "sample string 3",
  "rememberMe": true,
  "mobile": true
}

application/xml, text/xml

Sample:
<LoginUserBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RucontAPI.Models.Account">
  <Mobile>true</Mobile>
  <Password>sample string 2</Password>
  <PasswordHash>sample string 3</PasswordHash>
  <RememberMe>true</RememberMe>
  <Username>sample string 1</Username>
</LoginUserBindingModel>

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, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

Sample:

Sample not available.