GET api/Product/GetProductsForReport?Page={Page}&ItemsPerPage={ItemsPerPage}&SortBy={SortBy}&Reverse={Reverse}&Search={Search}&Date={Date}&Day={Day}&FilterType={FilterType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Page

integer

None.

ItemsPerPage

integer

None.

SortBy

string

None.

Reverse

boolean

None.

Search

string

None.

Date

date

None.

Day

string

None.

FilterType

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of ProductModel
NameDescriptionTypeAdditional information
Id

integer

None.

Type

string

None.

Brand

string

None.

Name

string

None.

Description

string

None.

Price

decimal number

None.

IsActive

boolean

None.

CreatedBy

string

None.

ModifiedBy

string

None.

ProductColor

string

None.

Quantity

integer

None.

IsDiscount

boolean

None.

Discount

integer

None.

CreatedOn

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Type": "sample string 2",
    "Brand": "sample string 3",
    "Name": "sample string 4",
    "Description": "sample string 5",
    "Price": 1.0,
    "IsActive": true,
    "CreatedBy": "sample string 7",
    "ModifiedBy": "sample string 8",
    "ProductColor": "sample string 9",
    "Quantity": 1,
    "IsDiscount": true,
    "Discount": 1,
    "CreatedOn": "2019-05-22T11:23:20.0713514+05:00"
  },
  {
    "Id": 1,
    "Type": "sample string 2",
    "Brand": "sample string 3",
    "Name": "sample string 4",
    "Description": "sample string 5",
    "Price": 1.0,
    "IsActive": true,
    "CreatedBy": "sample string 7",
    "ModifiedBy": "sample string 8",
    "ProductColor": "sample string 9",
    "Quantity": 1,
    "IsDiscount": true,
    "Discount": 1,
    "CreatedOn": "2019-05-22T11:23:20.0713514+05:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.Product">
  <ProductModel>
    <Brand>sample string 3</Brand>
    <CreatedBy>sample string 7</CreatedBy>
    <CreatedOn>2019-05-22T11:23:20.0713514+05:00</CreatedOn>
    <Description>sample string 5</Description>
    <Discount>1</Discount>
    <Id>1</Id>
    <IsActive>true</IsActive>
    <IsDiscount>true</IsDiscount>
    <ModifiedBy>sample string 8</ModifiedBy>
    <Name>sample string 4</Name>
    <Price>1</Price>
    <ProductColor>sample string 9</ProductColor>
    <Quantity>1</Quantity>
    <Type>sample string 2</Type>
  </ProductModel>
  <ProductModel>
    <Brand>sample string 3</Brand>
    <CreatedBy>sample string 7</CreatedBy>
    <CreatedOn>2019-05-22T11:23:20.0713514+05:00</CreatedOn>
    <Description>sample string 5</Description>
    <Discount>1</Discount>
    <Id>1</Id>
    <IsActive>true</IsActive>
    <IsDiscount>true</IsDiscount>
    <ModifiedBy>sample string 8</ModifiedBy>
    <Name>sample string 4</Name>
    <Price>1</Price>
    <ProductColor>sample string 9</ProductColor>
    <Quantity>1</Quantity>
    <Type>sample string 2</Type>
  </ProductModel>
</ArrayOfProductModel>