POST api/Ticket/GetTopics

获取调研项接口 code200=成功,201=未找到调研项,400=异常,500=错误

Request Information

URI Parameters

None.

Body Parameters

请求参数

Parameters
NameDescriptionTypeAdditional information
Key

密匙(炎麟提供)

string

None.

ChannelID

渠道ID(炎麟提供)

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Key": "sample string 1",
  "ChannelID": 2
}

application/xml, text/xml

Sample:
<Parameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YLWebApi.Dtos">
  <ChannelID>2</ChannelID>
  <Key>sample string 1</Key>
</Parameters>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultDtoOfListOfTopicDto
NameDescriptionTypeAdditional information
Data

Collection of TopicDto

None.

Code

代码200=成功,400=异常,500=失败

integer

None.

Message

应答描述

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "GID": "b8d7f18e-48fd-412d-b185-7bf95dff1756",
      "Content": "sample string 2",
      "ContentEn": "sample string 3",
      "Type": 4,
      "ListOptions": [
        {
          "GID": "09a6efd8-f816-48e6-bb13-a8938ec848dc",
          "Content": "sample string 2",
          "ContentEn": "sample string 3",
          "Type": 4
        },
        {
          "GID": "09a6efd8-f816-48e6-bb13-a8938ec848dc",
          "Content": "sample string 2",
          "ContentEn": "sample string 3",
          "Type": 4
        }
      ]
    },
    {
      "GID": "b8d7f18e-48fd-412d-b185-7bf95dff1756",
      "Content": "sample string 2",
      "ContentEn": "sample string 3",
      "Type": 4,
      "ListOptions": [
        {
          "GID": "09a6efd8-f816-48e6-bb13-a8938ec848dc",
          "Content": "sample string 2",
          "ContentEn": "sample string 3",
          "Type": 4
        },
        {
          "GID": "09a6efd8-f816-48e6-bb13-a8938ec848dc",
          "Content": "sample string 2",
          "ContentEn": "sample string 3",
          "Type": 4
        }
      ]
    }
  ],
  "Code": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ResultDtoOfArrayOfTopicDto_SR_SkLznh xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YLWebApi.Models">
  <Code>1</Code>
  <Message>sample string 2</Message>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/YLWebApi.Dtos">
    <d2p1:TopicDto>
      <d2p1:Content>sample string 2</d2p1:Content>
      <d2p1:ContentEn>sample string 3</d2p1:ContentEn>
      <d2p1:GID>b8d7f18e-48fd-412d-b185-7bf95dff1756</d2p1:GID>
      <d2p1:ListOptions>
        <d2p1:OptionDto>
          <d2p1:Content>sample string 2</d2p1:Content>
          <d2p1:ContentEn>sample string 3</d2p1:ContentEn>
          <d2p1:GID>09a6efd8-f816-48e6-bb13-a8938ec848dc</d2p1:GID>
          <d2p1:Type>4</d2p1:Type>
        </d2p1:OptionDto>
        <d2p1:OptionDto>
          <d2p1:Content>sample string 2</d2p1:Content>
          <d2p1:ContentEn>sample string 3</d2p1:ContentEn>
          <d2p1:GID>09a6efd8-f816-48e6-bb13-a8938ec848dc</d2p1:GID>
          <d2p1:Type>4</d2p1:Type>
        </d2p1:OptionDto>
      </d2p1:ListOptions>
      <d2p1:Type>4</d2p1:Type>
    </d2p1:TopicDto>
    <d2p1:TopicDto>
      <d2p1:Content>sample string 2</d2p1:Content>
      <d2p1:ContentEn>sample string 3</d2p1:ContentEn>
      <d2p1:GID>b8d7f18e-48fd-412d-b185-7bf95dff1756</d2p1:GID>
      <d2p1:ListOptions>
        <d2p1:OptionDto>
          <d2p1:Content>sample string 2</d2p1:Content>
          <d2p1:ContentEn>sample string 3</d2p1:ContentEn>
          <d2p1:GID>09a6efd8-f816-48e6-bb13-a8938ec848dc</d2p1:GID>
          <d2p1:Type>4</d2p1:Type>
        </d2p1:OptionDto>
        <d2p1:OptionDto>
          <d2p1:Content>sample string 2</d2p1:Content>
          <d2p1:ContentEn>sample string 3</d2p1:ContentEn>
          <d2p1:GID>09a6efd8-f816-48e6-bb13-a8938ec848dc</d2p1:GID>
          <d2p1:Type>4</d2p1:Type>
        </d2p1:OptionDto>
      </d2p1:ListOptions>
      <d2p1:Type>4</d2p1:Type>
    </d2p1:TopicDto>
  </Data>
</ResultDtoOfArrayOfTopicDto_SR_SkLznh>