POST api/admin/category/datatable

Upload product image

Request Information

URI Parameters

None.

Body Parameters

DataTableRequest
NameDescriptionTypeAdditional information
Draw

integer

None.

Start

integer

None.

Length

integer

None.

Columns

Collection of ColumnRequestItem

None.

Order

Collection of OrderRequestItem

None.

Search

SearchRequestItem

None.

Request Formats

application/json, text/json

Sample:
{
  "Draw": 1,
  "Start": 2,
  "Length": 3,
  "Columns": [
    {
      "Data": "sample string 1",
      "Name": "sample string 2",
      "Searchable": true,
      "Orderable": true,
      "Search": {
        "Value": "sample string 1",
        "Regex": true
      }
    },
    {
      "Data": "sample string 1",
      "Name": "sample string 2",
      "Searchable": true,
      "Orderable": true,
      "Search": {
        "Value": "sample string 1",
        "Regex": true
      }
    }
  ],
  "Order": [
    {
      "Column": 1,
      "Dir": "sample string 2"
    },
    {
      "Column": 1,
      "Dir": "sample string 2"
    }
  ],
  "Search": {
    "Value": "sample string 1",
    "Regex": true
  }
}

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

Response Information

Resource Description

The List of Products

Collection of YSHProductCategoryDTO
NameDescriptionTypeAdditional information
uid

UID

integer

None.

name

facebook page ID. Generated by Facebook.

string

None.

sort_index

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "uid": 1,
    "name": "sample string 2",
    "sort_index": 3
  },
  {
    "uid": 1,
    "name": "sample string 2",
    "sort_index": 3
  }
]