POST api/User/LoginTest

Request Information

URI Parameters

None.

Body Parameters

LoginRequestModel
NameDescriptionTypeAdditional information
EmailId

string

None.

Password

string

None.

DeviceUniqueId

string

None.

DeviceType

integer

None.

UserType

integer

None.

DeviceToken

string

None.

WebLogin

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EmailId": "sample string 1",
  "Password": "sample string 2",
  "DeviceUniqueId": "sample string 3",
  "DeviceType": 4,
  "UserType": 5,
  "DeviceToken": "sample string 6",
  "WebLogin": true
}

application/xml, text/xml

Sample:
<LoginRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Login">
  <DeviceToken>sample string 6</DeviceToken>
  <DeviceType>4</DeviceType>
  <DeviceUniqueId>sample string 3</DeviceUniqueId>
  <EmailId>sample string 1</EmailId>
  <Password>sample string 2</Password>
  <UserType>5</UserType>
  <WebLogin>true</WebLogin>
</LoginRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LoginRequestModel'.

Response Information

Resource Description

ResponseOfLoginResponseModel
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

Message

string

None.

Status

integer

None.

Result

LoginResponseModel

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "Message": "sample string 2",
  "Status": 3,
  "Result": {
    "UserId": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "EmailId": "sample string 4",
    "CountryCode": 5,
    "MobileNo": "sample string 6",
    "IsLicenseComplete": true,
    "IsProfessionalComplete": true,
    "IsPersonalComplete": true,
    "IsVerified": true,
    "Token": "sample string 11",
    "CryptoKey": "sample string 12",
    "ProfileImage": "sample string 13",
    "AddressCount": 14,
    "BadgeCount": 15,
    "PhrCount": 16,
    "CardDetails": [
      {
        "CardId": "sample string 1",
        "CardNumber": "sample string 2",
        "Name": "sample string 3",
        "ExpirationMonth": "sample string 4",
        "ExpirationYear": "sample string 5",
        "CVV": "sample string 6"
      },
      {
        "CardId": "sample string 1",
        "CardNumber": "sample string 2",
        "Name": "sample string 3",
        "ExpirationMonth": "sample string 4",
        "ExpirationYear": "sample string 5",
        "CVV": "sample string 6"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfLoginResponseModelW218GSWs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Common">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 2</Message>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Login">
    <d2p1:AddressCount>14</d2p1:AddressCount>
    <d2p1:BadgeCount>15</d2p1:BadgeCount>
    <d2p1:CardDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Payment">
      <d3p1:StripeCardDetail>
        <d3p1:CVV>sample string 6</d3p1:CVV>
        <d3p1:CardId>sample string 1</d3p1:CardId>
        <d3p1:CardNumber>sample string 2</d3p1:CardNumber>
        <d3p1:ExpirationMonth>sample string 4</d3p1:ExpirationMonth>
        <d3p1:ExpirationYear>sample string 5</d3p1:ExpirationYear>
        <d3p1:Name>sample string 3</d3p1:Name>
      </d3p1:StripeCardDetail>
      <d3p1:StripeCardDetail>
        <d3p1:CVV>sample string 6</d3p1:CVV>
        <d3p1:CardId>sample string 1</d3p1:CardId>
        <d3p1:CardNumber>sample string 2</d3p1:CardNumber>
        <d3p1:ExpirationMonth>sample string 4</d3p1:ExpirationMonth>
        <d3p1:ExpirationYear>sample string 5</d3p1:ExpirationYear>
        <d3p1:Name>sample string 3</d3p1:Name>
      </d3p1:StripeCardDetail>
    </d2p1:CardDetails>
    <d2p1:CountryCode>5</d2p1:CountryCode>
    <d2p1:CryptoKey>sample string 12</d2p1:CryptoKey>
    <d2p1:EmailId>sample string 4</d2p1:EmailId>
    <d2p1:FirstName>sample string 2</d2p1:FirstName>
    <d2p1:IsLicenseComplete>true</d2p1:IsLicenseComplete>
    <d2p1:IsPersonalComplete>true</d2p1:IsPersonalComplete>
    <d2p1:IsProfessionalComplete>true</d2p1:IsProfessionalComplete>
    <d2p1:IsVerified>true</d2p1:IsVerified>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:MobileNo>sample string 6</d2p1:MobileNo>
    <d2p1:PhrCount>16</d2p1:PhrCount>
    <d2p1:ProfileImage>sample string 13</d2p1:ProfileImage>
    <d2p1:Token>sample string 11</d2p1:Token>
    <d2p1:UserId>1</d2p1:UserId>
  </Result>
  <Status>3</Status>
</ResponseOfLoginResponseModelW218GSWs>