POST api/Security/Token

Request Information

URI Parameters

None.

Body Parameters

SecurityData
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

Request Formats

application/xml, text/xml

Sample:
<SecurityData 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>
</SecurityData>

application/json, text/json

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

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

Response Information

Resource Description

ApiDataResultOfGuid
NameDescriptionTypeAdditional information
Data

globally unique identifier

None.

Code

ApiCode

None.

Message

string

None.

StackTrace

string

None.

Response Formats

application/xml, text/xml

Sample:
<ApiDataResultOfGuid xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Code>0</Code>
  <Message>sample string 2</Message>
  <StackTrace>sample string 3</StackTrace>
  <Data>c137e93b-c033-4ef0-b488-e9802d40467b</Data>
</ApiDataResultOfGuid>

application/json, text/json

Sample:
{
  "Data": "c137e93b-c033-4ef0-b488-e9802d40467b",
  "Code": 0,
  "Message": "sample string 2",
  "StackTrace": "sample string 3"
}