GET api/ExpenseCategory

Gets all Expense Category Details.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of Expense Category and Details

Collection of ExpenseCategory
NameDescriptionTypeAdditional information
Id

The unique identifier of the expense category.

integer

None.

Name

The name of the expense category.

string

None.

TotalExpenses

The total expenses 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",
    "TotalExpenses": 3.0,
    "ImageURL": "sample string 4"
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "TotalExpenses": 3.0,
    "ImageURL": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfExpenseCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
  <ExpenseCategory>
    <Id>1</Id>
    <ImageURL>sample string 4</ImageURL>
    <Name>sample string 2</Name>
    <TotalExpenses>3</TotalExpenses>
  </ExpenseCategory>
  <ExpenseCategory>
    <Id>1</Id>
    <ImageURL>sample string 4</ImageURL>
    <Name>sample string 2</Name>
    <TotalExpenses>3</TotalExpenses>
  </ExpenseCategory>
</ArrayOfExpenseCategory>