POST api/user/Login

Request Information

URI Parameters

None.

Body Parameters

LoginView
NameDescriptionTypeAdditional information
UserName

string

Required

Max length: 99

Password

string

Required

isPersistent

boolean

None.

ReturnUrl

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "isPersistent": true,
  "ReturnUrl": "sample string 4"
}

application/xml, text/xml

Sample:

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AccountModel
NameDescriptionTypeAdditional information
token

string

None.

status

integer

None.

data

Account

None.

page

PageModel

None.

error

ErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "status": 2,
  "data": {
    "AccountID": 1,
    "PartnerID": 2,
    "Fullname": "sample string 3",
    "Mobile": "sample string 4",
    "Email": "sample string 5",
    "Jobtitle": "sample string 6",
    "CreatedDate": "sample string 7",
    "CreatedBy": 8,
    "Username": "sample string 9",
    "Password": "sample string 10",
    "Gender": "sample string 11",
    "LastPassChange": "sample string 12",
    "NextPassChange": "sample string 13",
    "IsMasterAccount": true,
    "LastLogin": "sample string 15",
    "IsLock": true,
    "LockedNote": "sample string 17",
    "LockedDate": "sample string 18",
    "LockedBy": 19,
    "Note": "sample string 20",
    "PermissionID": "sample string 21",
    "AppCode": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "page": {
    "Page": 1,
    "AllPage": 2,
    "Size": 3,
    "TotalCount": 4
  },
  "error": {
    "message": "sample string 1",
    "code": "sample string 2",
    "page": {
      "Page": 1,
      "AllPage": 2,
      "Size": 3,
      "TotalCount": 4
    }
  }
}

application/xml, text/xml

Sample: