POST api/v0/Login/CheckUserComponentSession

Request Information

URI Parameters

None.

Body Parameters

CheckComponentContract
NameDescriptionTypeAdditional information
token

string

None.

applicationCode

string

None.

componentCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "applicationCode": "sample string 2",
  "componentCode": "sample string 3"
}

application/xml, text/xml

Sample:
<CheckComponentContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FDService/Login/contracts/2017/01">
  <applicationCode>sample string 2</applicationCode>
  <componentCode>sample string 3</componentCode>
  <token>sample string 1</token>
</CheckComponentContract>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CheckUserComponentSessionData
NameDescriptionTypeAdditional information
User

UserData

None.

Status

CheckUserComponentSessionStatus

None.

StatusMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "User": {
    "ID": 1,
    "Name": "sample string 2",
    "Lastname": "sample string 3",
    "Occupation": "sample string 4",
    "Phone": "sample string 5",
    "Email": "sample string 6",
    "Username": "sample string 7",
    "PasswordMD5": "sample string 8",
    "IsEnabled": true,
    "IsDomainAdmin": true,
    "LanguageID": 0,
    "DomainLanguageID": 0
  },
  "Status": 0,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<CheckUserComponentSessionData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.agrifoodatsolutions.com/FDService/Login/contracts/2017/01">
  <Status>Succesful</Status>
  <StatusMessage>sample string 1</StatusMessage>
  <User>
    <DomainLanguageID>English</DomainLanguageID>
    <Email>sample string 6</Email>
    <ID>1</ID>
    <IsDomainAdmin>true</IsDomainAdmin>
    <IsEnabled>true</IsEnabled>
    <LanguageID>English</LanguageID>
    <Lastname>sample string 3</Lastname>
    <Name>sample string 2</Name>
    <Occupation>sample string 4</Occupation>
    <PasswordMD5>sample string 8</PasswordMD5>
    <Phone>sample string 5</Phone>
    <Username>sample string 7</Username>
  </User>
</CheckUserComponentSessionData>