GET api/SpendCategory
Gets all Spend Categories.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Spend categories and Details
Collection of SpendCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The unique identifier of the Spend category. |
integer |
None. |
| name |
The name of the Spend category. |
string |
None. |
| totalSpends |
The total Spends associated with the category. |
decimal number |
None. |
| imageURL |
The image associated with the category. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"name": "sample string 2",
"totalSpends": 3.0,
"imageURL": "sample string 4"
},
{
"id": 1,
"name": "sample string 2",
"totalSpends": 3.0,
"imageURL": "sample string 4"
}
]
application/xml, text/xml
Sample:
<ArrayOfSpendCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
<SpendCategory>
<id>1</id>
<imageURL>sample string 4</imageURL>
<name>sample string 2</name>
<totalSpends>3</totalSpends>
</SpendCategory>
<SpendCategory>
<id>1</id>
<imageURL>sample string 4</imageURL>
<name>sample string 2</name>
<totalSpends>3</totalSpends>
</SpendCategory>
</ArrayOfSpendCategory>