GET api/product/cate/{uid}?offset={offset}&count={count}

Get List of Products from input Category which is on sale Product is sorted according to Product's Creation Date

Request Information

URI Parameters

NameDescriptionTypeAdditional information
uid

ID of Category

integer

Required

offset

Offset of the list, default is 0

integer

Default value is 0

count

Number of product in the list, default is 10

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

The List of Products of input Category

Collection of YSHProductDTO
NameDescriptionTypeAdditional information
product_uid

ID of the product

integer

None.

product_name

Name of the product

string

None.

product_price

Price of the product

decimal number

None.

seller_uid

User ID of the seller

integer

None.

seller_display_name

Name of the seller

string

None.

seller_rating

Rating of the seller

decimal number

None.

buyer_uid

User ID of the buyer

integer

None.

buyer_display_name

Name of the buyer

string

None.

category_uid

Category Id of the product

integer

None.

category_name

Category Name of the product

string

None.

current_state_uid

Current State of the product

integer

None.

product_desc

Description of the produdct

string

None.

image_1_uid

URL of image 1 of product

integer

None.

image_2_uid

URL of image 2 of product

integer

None.

image_3_uid

URL of image 3 of product

integer

None.

image_1_path

URL of image 1 of product

string

None.

image_2_path

URL of image 2 of product

string

None.

image_3_path

URL of image 3 of product

string

None.

view_count

View count of the product

integer

None.

shipping_is_face_to_face

Flag for face to face shipping

boolean

None.

shipping_face_to_face_detail

Detail for face to face shipping

string

None.

shipping_is_post

Flag for post shipping

boolean

None.

shipping_post_detail

Detail for post shipping

string

None.

shipping_is_other

Flag for other shipping

boolean

None.

shipping_other_detail

Detail for other shipping

string

None.

product_create_date

Create Date of the Product

date

None.

product_sold_date

Sold Date of the Product

date

None.

product_expiry_date

Expiry Date of the Product

date

None.

product_last_order_date

Last order date of the Product

date

None.

orders

Related Order of the Product

Collection of YSHOrderDTO

None.

is_activated_chat

Flag to show already activated chat or not

boolean

None.

is_seller_read

Is seller read all order flag

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "product_uid": 1,
    "product_name": "sample string 2",
    "product_price": 3.1,
    "seller_uid": 4,
    "seller_display_name": "sample string 5",
    "seller_rating": 1.1,
    "buyer_uid": 1,
    "buyer_display_name": "sample string 6",
    "category_uid": 7,
    "category_name": "sample string 8",
    "current_state_uid": 9,
    "product_desc": "sample string 10",
    "image_1_uid": 1,
    "image_2_uid": 1,
    "image_3_uid": 1,
    "image_1_path": "sample string 11",
    "image_2_path": "sample string 12",
    "image_3_path": "sample string 13",
    "view_count": 14,
    "shipping_is_face_to_face": true,
    "shipping_face_to_face_detail": "sample string 16",
    "shipping_is_post": true,
    "shipping_post_detail": "sample string 18",
    "shipping_is_other": true,
    "shipping_other_detail": "sample string 20",
    "product_create_date": "2018-01-23T02:05:37.6777326+08:00",
    "product_sold_date": "2018-01-23T02:05:37.6777326+08:00",
    "product_expiry_date": "2018-01-23T02:05:37.6777326+08:00",
    "product_last_order_date": "2018-01-23T02:05:37.6777326+08:00",
    "orders": [
      {
        "order_uid": 1,
        "product_uid": 2,
        "product_name": "sample string 3",
        "product_image_name": "sample string 4",
        "product_create_date": "2018-01-23T02:05:37.6777326+08:00",
        "product_expiry_date": "2018-01-23T02:05:37.6777326+08:00",
        "actual_price": 7.1,
        "current_state_uid": 8,
        "buyer_uid": 9,
        "buyer_display_name": "sample string 10",
        "buyer_fb_picture": "sample string 11",
        "seller_uid": 12,
        "seller_display_name": "sample string 13",
        "order_create_date": "2018-01-23T02:05:37.6777326+08:00",
        "order_last_update_date": "2018-01-23T02:05:37.6777326+08:00",
        "order_finish_date": "2018-01-23T02:05:37.6777326+08:00",
        "is_buyer_read": true,
        "is_seller_read": true
      },
      {
        "order_uid": 1,
        "product_uid": 2,
        "product_name": "sample string 3",
        "product_image_name": "sample string 4",
        "product_create_date": "2018-01-23T02:05:37.6777326+08:00",
        "product_expiry_date": "2018-01-23T02:05:37.6777326+08:00",
        "actual_price": 7.1,
        "current_state_uid": 8,
        "buyer_uid": 9,
        "buyer_display_name": "sample string 10",
        "buyer_fb_picture": "sample string 11",
        "seller_uid": 12,
        "seller_display_name": "sample string 13",
        "order_create_date": "2018-01-23T02:05:37.6777326+08:00",
        "order_last_update_date": "2018-01-23T02:05:37.6777326+08:00",
        "order_finish_date": "2018-01-23T02:05:37.6777326+08:00",
        "is_buyer_read": true,
        "is_seller_read": true
      }
    ],
    "is_activated_chat": true,
    "is_seller_read": true
  },
  {
    "product_uid": 1,
    "product_name": "sample string 2",
    "product_price": 3.1,
    "seller_uid": 4,
    "seller_display_name": "sample string 5",
    "seller_rating": 1.1,
    "buyer_uid": 1,
    "buyer_display_name": "sample string 6",
    "category_uid": 7,
    "category_name": "sample string 8",
    "current_state_uid": 9,
    "product_desc": "sample string 10",
    "image_1_uid": 1,
    "image_2_uid": 1,
    "image_3_uid": 1,
    "image_1_path": "sample string 11",
    "image_2_path": "sample string 12",
    "image_3_path": "sample string 13",
    "view_count": 14,
    "shipping_is_face_to_face": true,
    "shipping_face_to_face_detail": "sample string 16",
    "shipping_is_post": true,
    "shipping_post_detail": "sample string 18",
    "shipping_is_other": true,
    "shipping_other_detail": "sample string 20",
    "product_create_date": "2018-01-23T02:05:37.6777326+08:00",
    "product_sold_date": "2018-01-23T02:05:37.6777326+08:00",
    "product_expiry_date": "2018-01-23T02:05:37.6777326+08:00",
    "product_last_order_date": "2018-01-23T02:05:37.6777326+08:00",
    "orders": [
      {
        "order_uid": 1,
        "product_uid": 2,
        "product_name": "sample string 3",
        "product_image_name": "sample string 4",
        "product_create_date": "2018-01-23T02:05:37.6777326+08:00",
        "product_expiry_date": "2018-01-23T02:05:37.6777326+08:00",
        "actual_price": 7.1,
        "current_state_uid": 8,
        "buyer_uid": 9,
        "buyer_display_name": "sample string 10",
        "buyer_fb_picture": "sample string 11",
        "seller_uid": 12,
        "seller_display_name": "sample string 13",
        "order_create_date": "2018-01-23T02:05:37.6777326+08:00",
        "order_last_update_date": "2018-01-23T02:05:37.6777326+08:00",
        "order_finish_date": "2018-01-23T02:05:37.6777326+08:00",
        "is_buyer_read": true,
        "is_seller_read": true
      },
      {
        "order_uid": 1,
        "product_uid": 2,
        "product_name": "sample string 3",
        "product_image_name": "sample string 4",
        "product_create_date": "2018-01-23T02:05:37.6777326+08:00",
        "product_expiry_date": "2018-01-23T02:05:37.6777326+08:00",
        "actual_price": 7.1,
        "current_state_uid": 8,
        "buyer_uid": 9,
        "buyer_display_name": "sample string 10",
        "buyer_fb_picture": "sample string 11",
        "seller_uid": 12,
        "seller_display_name": "sample string 13",
        "order_create_date": "2018-01-23T02:05:37.6777326+08:00",
        "order_last_update_date": "2018-01-23T02:05:37.6777326+08:00",
        "order_finish_date": "2018-01-23T02:05:37.6777326+08:00",
        "is_buyer_read": true,
        "is_seller_read": true
      }
    ],
    "is_activated_chat": true,
    "is_seller_read": true
  }
]