GET api/Rep/GetGraphData/{repCode}/{lastRefreshDate}

Gets the rep graph data

Request Information

URI Parameters

NameDescriptionTypeAdditional information
repCode

string

Required

lastRefreshDate

Optional: last date that the data set was refreshed (null if date not required)

date

Required

Body Parameters

None.

Response Information

Resource Description

Returns a list of all the graph data

GraphDataListViewModel
NameDescriptionTypeAdditional information
data

Collection of GraphData

None.

apiResponse

APIResponseMessage

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "RepName": "sample string 1",
      "Product": "sample string 2",
      "GraphType": "sample string 3",
      "Actual": 4,
      "Target": 5,
      "Projection": 6
    },
    {
      "RepName": "sample string 1",
      "Product": "sample string 2",
      "GraphType": "sample string 3",
      "Actual": 4,
      "Target": 5,
      "Projection": 6
    }
  ],
  "apiResponse": {
    "HttpStatusCode": "sample string 1",
    "ReasonPhrase": "sample string 2",
    "ExceptionMessage": "sample string 3",
    "GeneralMessage": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<GraphDataListViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.Rep">
  <apiResponse xmlns:d2p1="http://schemas.datacontract.org/2004/07/API.Core.Models">
    <d2p1:ExceptionMessage>sample string 3</d2p1:ExceptionMessage>
    <d2p1:GeneralMessage>sample string 4</d2p1:GeneralMessage>
    <d2p1:HttpStatusCode>sample string 1</d2p1:HttpStatusCode>
    <d2p1:ReasonPhrase>sample string 2</d2p1:ReasonPhrase>
  </apiResponse>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/API.Core.Models.Rep">
    <d2p1:GraphData>
      <d2p1:Actual>4</d2p1:Actual>
      <d2p1:GraphType>sample string 3</d2p1:GraphType>
      <d2p1:Product>sample string 2</d2p1:Product>
      <d2p1:Projection>6</d2p1:Projection>
      <d2p1:RepName>sample string 1</d2p1:RepName>
      <d2p1:Target>5</d2p1:Target>
    </d2p1:GraphData>
    <d2p1:GraphData>
      <d2p1:Actual>4</d2p1:Actual>
      <d2p1:GraphType>sample string 3</d2p1:GraphType>
      <d2p1:Product>sample string 2</d2p1:Product>
      <d2p1:Projection>6</d2p1:Projection>
      <d2p1:RepName>sample string 1</d2p1:RepName>
      <d2p1:Target>5</d2p1:Target>
    </d2p1:GraphData>
  </data>
</GraphDataListViewModel>