POST api/Services/GetDashboardData
Request Information
URI Parameters
None.
Body Parameters
DashboardEntityName | Description | Type | Additional information |
---|---|---|---|
StoreId | integer |
None. |
|
RoutId | integer |
None. |
|
Date | string |
None. |
|
Type | integer |
None. |
|
Count | GetDashboardData_Result |
None. |
|
Sale | Collection of GetDashboardDataSalePurchase_Result |
None. |
|
Purchase | Collection of GetDashboardDataSalePurchase_Result |
None. |
Request Formats
application/json, text/json
Sample:
{ "StoreId": 1, "RoutId": 2, "Date": "sample string 3", "Type": 4, "Count": { "TotalMember": 1, "TotalSupllier": 1, "TotalPurchase": 1.1, "TotalSale": 1.1 }, "Sale": [ { "RowNom": 1, "ProductId": 1, "ProductName": "sample string 2", "QTY": 1.1, "Amount": 1.1, "Type": "sample string 3" }, { "RowNom": 1, "ProductId": 1, "ProductName": "sample string 2", "QTY": 1.1, "Amount": 1.1, "Type": "sample string 3" } ], "Purchase": [ { "RowNom": 1, "ProductId": 1, "ProductName": "sample string 2", "QTY": 1.1, "Amount": 1.1, "Type": "sample string 3" }, { "RowNom": 1, "ProductId": 1, "ProductName": "sample string 2", "QTY": 1.1, "Amount": 1.1, "Type": "sample string 3" } ] }
text/html, multipart/form-data
Sample:
{"StoreId":1,"RoutId":2,"Date":"sample string 3","Type":4,"Count":{"TotalMember":1,"TotalSupllier":1,"TotalPurchase":1.1,"TotalSale":1.1},"Sale":[{"RowNom":1,"ProductId":1,"ProductName":"sample string 2","QTY":1.1,"Amount":1.1,"Type":"sample string 3"},{"RowNom":1,"ProductId":1,"ProductName":"sample string 2","QTY":1.1,"Amount":1.1,"Type":"sample string 3"}],"Purchase":[{"RowNom":1,"ProductId":1,"ProductName":"sample string 2","QTY":1.1,"Amount":1.1,"Type":"sample string 3"},{"RowNom":1,"ProductId":1,"ProductName":"sample string 2","QTY":1.1,"Amount":1.1,"Type":"sample string 3"}]}
application/xml, text/xml
Sample:
<DashboardEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entity"> <Count xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataBase"> <d2p1:TotalMember>1</d2p1:TotalMember> <d2p1:TotalPurchase>1.1</d2p1:TotalPurchase> <d2p1:TotalSale>1.1</d2p1:TotalSale> <d2p1:TotalSupllier>1</d2p1:TotalSupllier> </Count> <Date>sample string 3</Date> <Purchase xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataBase"> <d2p1:GetDashboardDataSalePurchase_Result> <d2p1:Amount>1.1</d2p1:Amount> <d2p1:ProductId>1</d2p1:ProductId> <d2p1:ProductName>sample string 2</d2p1:ProductName> <d2p1:QTY>1.1</d2p1:QTY> <d2p1:RowNom>1</d2p1:RowNom> <d2p1:Type>sample string 3</d2p1:Type> </d2p1:GetDashboardDataSalePurchase_Result> <d2p1:GetDashboardDataSalePurchase_Result> <d2p1:Amount>1.1</d2p1:Amount> <d2p1:ProductId>1</d2p1:ProductId> <d2p1:ProductName>sample string 2</d2p1:ProductName> <d2p1:QTY>1.1</d2p1:QTY> <d2p1:RowNom>1</d2p1:RowNom> <d2p1:Type>sample string 3</d2p1:Type> </d2p1:GetDashboardDataSalePurchase_Result> </Purchase> <RoutId>2</RoutId> <Sale xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataBase"> <d2p1:GetDashboardDataSalePurchase_Result> <d2p1:Amount>1.1</d2p1:Amount> <d2p1:ProductId>1</d2p1:ProductId> <d2p1:ProductName>sample string 2</d2p1:ProductName> <d2p1:QTY>1.1</d2p1:QTY> <d2p1:RowNom>1</d2p1:RowNom> <d2p1:Type>sample string 3</d2p1:Type> </d2p1:GetDashboardDataSalePurchase_Result> <d2p1:GetDashboardDataSalePurchase_Result> <d2p1:Amount>1.1</d2p1:Amount> <d2p1:ProductId>1</d2p1:ProductId> <d2p1:ProductName>sample string 2</d2p1:ProductName> <d2p1:QTY>1.1</d2p1:QTY> <d2p1:RowNom>1</d2p1:RowNom> <d2p1:Type>sample string 3</d2p1:Type> </d2p1:GetDashboardDataSalePurchase_Result> </Sale> <StoreId>1</StoreId> <Type>4</Type> </DashboardEntity>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APIResponceName | Description | Type | Additional information |
---|---|---|---|
Status | string |
None. |
|
Message | string |
None. |
|
Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": "sample string 1", "Message": "sample string 2", "Data": {} }
text/html, multipart/form-data
Sample:
{"Status":"sample string 1","Message":"sample string 2","Data":{}}
application/xml, text/xml
Sample:
<APIResponce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Controllers"> <Data /> <Message>sample string 2</Message> <Status>sample string 1</Status> </APIResponce>