POST api/HaThanh/Login

Request Information

URI Parameters

None.

Body Parameters

LoginEntity
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:
<DungChung.LoginEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NanoHISPublicAPI">
  <Password>sample string 2</Password>
  <Username>sample string 1</Username>
</DungChung.LoginEntity>

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

Response Information

Resource Description

OutputNewEntity
NameDescriptionTypeAdditional information
Comment

string

None.

StatusCode

integer

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Comment": "sample string 1",
  "StatusCode": 2,
  "data": {}
}

application/xml, text/xml

Sample:
<DungChung.OutputNewEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NanoHISPublicAPI">
  <Comment>sample string 1</Comment>
  <StatusCode>2</StatusCode>
  <data />
</DungChung.OutputNewEntity>