POST token

Request Information

URI Parameters

None.

Body Parameters

TokenDto
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

Grant_Type

string

None.

Request Formats

application/json, text/json

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

text/html

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

application/xml, text/xml

Sample:
<TokenDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryTrackingSystem.Webserver.Api.Controllers">
  <Grant_Type>sample string 3</Grant_Type>
  <Password>sample string 2</Password>
  <Username>sample string 1</Username>
</TokenDto>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.