POST api/QueueMSGAPI/AddQueueMSGAPISubmit

Request Information

URI Parameters

None.

Body Parameters

QueueMSGAPIDTO
NameDescriptionTypeAdditional information
ID

integer

None.

DateCreated

date

None.

ServerName

string

String length: inclusive between 0 and 50

Cmd

string

String length: inclusive between 0 and 50

Msg

string

String length: inclusive between 0 and 3500

Status

byte

None.

Result

byte

None.

LastUpdateDate

date

None.

Comment

string

String length: inclusive between 0 and 50

Priority

byte

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "DateCreated": "2018-12-15T09:45:16.8564758+08:00",
  "ServerName": "sample string 3",
  "Cmd": "sample string 4",
  "Msg": "sample string 5",
  "Status": 64,
  "Result": 64,
  "LastUpdateDate": "2018-12-15T09:45:16.8564758+08:00",
  "Comment": "sample string 9",
  "Priority": 64
}

application/xml, text/xml

Sample:
<QueueMSGAPIDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Cmd>sample string 4</Cmd>
  <Comment>sample string 9</Comment>
  <DateCreated>2018-12-15T09:45:16.8564758+08:00</DateCreated>
  <ID>1</ID>
  <LastUpdateDate>2018-12-15T09:45:16.8564758+08:00</LastUpdateDate>
  <Msg>sample string 5</Msg>
  <Priority>64</Priority>
  <Result>64</Result>
  <ServerName>sample string 3</ServerName>
  <Status>64</Status>
</QueueMSGAPIDTO>

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

Response Information

Resource Description

StatusDTO
NameDescriptionTypeAdditional information
Status

状态

integer

None.

StatusMessage

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
</StatusDTO>