POST api/Coupons/GetAll

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CouponToWebSiteViewModel
NameDescriptionTypeAdditional information
CouponId

integer

None.

BusinessId

integer

None.

Text

string

None.

IconId

integer

None.

StartDate

date

None.

EndDate

date

None.

CouponType

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CouponId": 1,
    "BusinessId": 2,
    "Text": "sample string 3",
    "IconId": 1,
    "StartDate": "2019-07-23T12:13:00.34864+00:00",
    "EndDate": "2019-07-23T12:13:00.34864+00:00",
    "CouponType": 4
  },
  {
    "CouponId": 1,
    "BusinessId": 2,
    "Text": "sample string 3",
    "IconId": 1,
    "StartDate": "2019-07-23T12:13:00.34864+00:00",
    "EndDate": "2019-07-23T12:13:00.34864+00:00",
    "CouponType": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfCouponToWebSiteViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <CouponToWebSiteViewModel>
    <BusinessId>2</BusinessId>
    <CouponId>1</CouponId>
    <CouponType>4</CouponType>
    <EndDate>2019-07-23T12:13:00.34864+00:00</EndDate>
    <IconId>1</IconId>
    <StartDate>2019-07-23T12:13:00.34864+00:00</StartDate>
    <Text>sample string 3</Text>
  </CouponToWebSiteViewModel>
  <CouponToWebSiteViewModel>
    <BusinessId>2</BusinessId>
    <CouponId>1</CouponId>
    <CouponType>4</CouponType>
    <EndDate>2019-07-23T12:13:00.34864+00:00</EndDate>
    <IconId>1</IconId>
    <StartDate>2019-07-23T12:13:00.34864+00:00</StartDate>
    <Text>sample string 3</Text>
  </CouponToWebSiteViewModel>
</ArrayOfCouponToWebSiteViewModel>