POST api/Values/Login

Request Information

URI Parameters

None.

Body Parameters

Credentials
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

Request Formats

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

Response Information

Resource Description

ValidUser
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

token

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "token": "sample string 3"
}