POST api/auth/login/credentials

Request Information

URI Parameters

None.

Body Parameters

loginModel
NameDescriptionTypeAdditional information
username

string

None.

password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "username": "sample string 1",
  "password": "sample string 2"
}

application/xml, text/xml

Sample:
<loginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.auth.Model">
  <password>sample string 2</password>
  <username>sample string 1</username>
</loginModel>

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 'loginModel'.

Response Information

Resource Description

loginModelResponse
NameDescriptionTypeAdditional information
token

string

None.

structures

Collection of Structures

None.

Response Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "structures": [
    {
      "str_code": "sample string 1",
      "structure_name": "sample string 2"
    },
    {
      "str_code": "sample string 1",
      "structure_name": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<loginModelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.auth.Model">
  <structures>
    <Structures>
      <str_code>sample string 1</str_code>
      <structure_name>sample string 2</structure_name>
    </Structures>
    <Structures>
      <str_code>sample string 1</str_code>
      <structure_name>sample string 2</structure_name>
    </Structures>
  </structures>
  <token>sample string 1</token>
</loginModelResponse>