POST api/AdminDashboard

Request Information

URI Parameters

None.

Body Parameters

AdminDashboardViewModel
NameDescriptionTypeAdditional information
totalpurchaseamount

decimal number

None.

financialyearid

integer

None.

totalpaymentmade

decimal number

None.

totalsaleamount

decimal number

None.

totalpaymentreceived

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "totalpurchaseamount": 1.1,
  "financialyearid": 2,
  "totalpaymentmade": 3.1,
  "totalsaleamount": 4.1,
  "totalpaymentreceived": 5.1
}

application/xml, text/xml

Sample:
<AdminDashboardViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/polymech_api.Models">
  <financialyearid>2</financialyearid>
  <totalpaymentmade>3.1</totalpaymentmade>
  <totalpaymentreceived>5.1</totalpaymentreceived>
  <totalpurchaseamount>1.1</totalpurchaseamount>
  <totalsaleamount>4.1</totalsaleamount>
</AdminDashboardViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResultViewModel
NameDescriptionTypeAdditional information
status

boolean

None.

message

string

None.

data

Object

None.

errorCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "message": "sample string 2",
  "data": {},
  "errorCode": 4
}

application/xml, text/xml

Sample:
<HttpResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/polymech_api.Models">
  <data />
  <errorCode>4</errorCode>
  <message>sample string 2</message>
  <status>true</status>
</HttpResultViewModel>