POST V2/Vote/GetListByClass

Request Information

URI Parameters

None.

Body Parameters

VoteCond
NameDescriptionTypeAdditional information
PageInfo

PageInfo

None.

Key

string

None.

ClassId

globally unique identifier

None.

VoteKeys

Collection of string

None.

ClassKeys

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "PageInfo": {
    "Page": 1,
    "PageSize": 2,
    "Offset": 0,
    "SortName": "sample string 3",
    "SortOrder": "sample string 4"
  },
  "Key": "sample string 1",
  "ClassId": "d63e3528-cefa-4c38-bd1b-84780d73b5fe",
  "VoteKeys": [
    "sample string 1",
    "sample string 2"
  ],
  "ClassKeys": [
    "sample string 1",
    "sample string 2"
  ]
}

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

Response Information

Resource Description

VoteClassView
NameDescriptionTypeAdditional information
VoteClass

VoteClass

None.

Votes

PageDataOfVoteItemView

None.

Response Formats

application/json, text/json

Sample:
{
  "VoteClass": {
    "Id": "e5f89358-bf80-4e1d-aa4b-9dcc7b7b8868",
    "ClassName": "sample string 2",
    "ClassLogo": "sample string 3",
    "Type": "sample string 4"
  },
  "Votes": {
    "TotalPage": 1,
    "TotalRecord": 1,
    "Data": [
      {
        "Id": "db8aed8c-a14f-416c-8a5e-a0445f2e7852",
        "Name": "sample string 2",
        "Info": "sample string 3",
        "Image": "sample string 4",
        "Qty": 5,
        "VoteKey": "sample string 6",
        "Rand": 7,
        "L": 8,
        "VoteClass": {
          "Id": "e5f89358-bf80-4e1d-aa4b-9dcc7b7b8868",
          "ClassName": "sample string 2",
          "ClassLogo": "sample string 3",
          "Type": "sample string 4"
        }
      },
      {
        "Id": "db8aed8c-a14f-416c-8a5e-a0445f2e7852",
        "Name": "sample string 2",
        "Info": "sample string 3",
        "Image": "sample string 4",
        "Qty": 5,
        "VoteKey": "sample string 6",
        "Rand": 7,
        "L": 8,
        "VoteClass": {
          "Id": "e5f89358-bf80-4e1d-aa4b-9dcc7b7b8868",
          "ClassName": "sample string 2",
          "ClassLogo": "sample string 3",
          "Type": "sample string 4"
        }
      }
    ],
    "Page": 2,
    "PageSize": 3,
    "Offset": 3,
    "SortName": "sample string 4",
    "SortOrder": "sample string 5"
  }
}