POST api/Authentication?httpStatusCode={httpStatusCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
httpStatusCode

HttpStatusCode

Required

Body Parameters

BasicResponse
NameDescriptionTypeAdditional information
success

boolean

None.

msg

MsgModel

None.

Request Formats

application/json, text/json

Sample:
{
  "success": true,
  "msg": {
    "code": 1,
    "text": "sample string 2",
    "topic": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<BasicResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TUFTManagement.Models">
  <msg>
    <code>1</code>
    <text>sample string 2</text>
    <topic>sample string 3</topic>
  </msg>
  <success>true</success>
</BasicResponse>

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

Response Information

Resource Description

HttpResponseException
NameDescriptionTypeAdditional information
Response

HttpResponseMessage

None.

Message

string

None.

Data

Dictionary of Object [key] and Object [value]

None.

InnerException

Exception

None.

TargetSite

MethodBase

None.

StackTrace

string

None.

HelpLink

string

None.

Source

string

None.

HResult

integer

None.

Response Formats

application/json, text/json

Sample:

Sample not available.