GET api/Clients/Login/{username}/{password}

Creates a session.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

username

string

Required

password

password

string

Required

Body Parameters

None.

Response Information

Resource Description

Current Session

SessionInfo
NameDescriptionTypeAdditional information
SessionId

სესიის Id

string

None.

SessionDetails

სესიის შესახებ დეტალური ინფორმაცია

SessionDetails

None.

UserDetails

მომხმარებლის შესახებ დეტალური ინფორმაცია

UserDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "SessionId": "sample string 1",
  "SessionDetails": {
    "IsChannelActive": true,
    "SessionTimeout": 2
  },
  "UserDetails": {
    "UserId": 1,
    "Username": "sample string 2",
    "Name": "sample string 3",
    "LastName": "sample string 4",
    "PhoneForSms": "sample string 5",
    "Active": true
  }
}

application/xml, text/xml

Sample:
<SessionInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <SessionDetails>
    <IsChannelActive>true</IsChannelActive>
    <SessionTimeout>2</SessionTimeout>
  </SessionDetails>
  <SessionId>sample string 1</SessionId>
  <UserDetails>
    <Active>true</Active>
    <LastName>sample string 4</LastName>
    <Name>sample string 3</Name>
    <PhoneForSms>sample string 5</PhoneForSms>
    <UserId>1</UserId>
    <Username>sample string 2</Username>
  </UserDetails>
</SessionInfo>