GET api/aaa/testArr

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

testResult
NameDescriptionTypeAdditional information
list

数组: testItem

None.

code

状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在...

integer

None.

msg

成功或者错误的说明,例如:登录成功,token过期...

string

None.

Response Formats

application/json, text/json

Sample:
{
  "list": [
    {
      "number": 1,
      "url": "sample string 2",
      "title": "sample string 3",
      "piaoshu": 4
    },
    {
      "number": 1,
      "url": "sample string 2",
      "title": "sample string 3",
      "piaoshu": 4
    }
  ],
  "code": 1,
  "msg": "sample string 2"
}

application/xml, text/xml

Sample:
<testResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <code xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</code>
  <msg xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 2</msg>
  <list>
    <testItem>
      <number>1</number>
      <piaoshu>4</piaoshu>
      <title>sample string 3</title>
      <url>sample string 2</url>
    </testItem>
    <testItem>
      <number>1</number>
      <piaoshu>4</piaoshu>
      <title>sample string 3</title>
      <url>sample string 2</url>
    </testItem>
  </list>
</testResult>