POST api/reporting/chart

Request Information

URI Parameters

None.

Body Parameters

Collection of ReportChartRequestDataContract
NameDescriptionTypeAdditional information
Name

string

None.

Facets

Collection of ChartReportFacet

None.

NegotiatorIds

Collection of integer

None.

From

date

None.

To

date

None.

BranchId

integer

None.

IncludeDrafts

boolean

None.

RoleTypes

Collection of string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Facets": [
      0,
      0
    ],
    "NegotiatorIds": [
      1,
      2
    ],
    "From": "2018-11-14T15:23:36.9920138Z",
    "To": "2018-11-14T15:23:36.9920138Z",
    "BranchId": 1,
    "IncludeDrafts": true,
    "RoleTypes": [
      "sample string 1",
      "sample string 2"
    ]
  },
  {
    "Name": "sample string 1",
    "Facets": [
      0,
      0
    ],
    "NegotiatorIds": [
      1,
      2
    ],
    "From": "2018-11-14T15:23:36.9920138Z",
    "To": "2018-11-14T15:23:36.9920138Z",
    "BranchId": 1,
    "IncludeDrafts": true,
    "RoleTypes": [
      "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 'IList`1'.

Response Information

Resource Description

Collection of ReportChartResultDataContract
NameDescriptionTypeAdditional information
Facet

ChartReportFacet

None.

Name

string

None.

NegotiatorId

integer

None.

Results

Collection of ChartResultDataContract

None.

BranchId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "BranchId": 1,
    "Facet": "OriginTotals",
    "Name": "sample string 1",
    "NegotiatorId": 1,
    "Results": [
      {
        "Name": "sample string 1",
        "Value": 2.1
      },
      {
        "Name": "sample string 1",
        "Value": 2.1
      }
    ]
  },
  {
    "BranchId": 1,
    "Facet": "OriginTotals",
    "Name": "sample string 1",
    "NegotiatorId": 1,
    "Results": [
      {
        "Name": "sample string 1",
        "Value": 2.1
      },
      {
        "Name": "sample string 1",
        "Value": 2.1
      }
    ]
  }
]