POST api/Login

Logs in with the given username and password

Request Information

Parameters

NameDescriptionAdditional information
cred

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Password": "sample string 2"
}

application/xml, text/xml

Sample:
<UserCredentialModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Username>sample string 1</Username>
  <Password>sample string 2</Password>
</UserCredentialModel>

application/x-www-form-urlencoded

Sample:

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

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Sessionkey": "sample string 1",
  "Status": "sample string 2",
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<LoginResponseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Status>sample string 2</Status>
  <Message>sample string 3</Message>
  <Sessionkey>sample string 1</Sessionkey>
</LoginResponseModel>