GET api/Types/GetAllElementsByCategory?category={category}

Gets all the types of the given category.

Request Information

Parameters

NameDescriptionAdditional information
category
The ID of the category.

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Name": "sample string 2",
    "Parent": 1,
    "Category": 0
  },
  {
    "ID": 1,
    "Name": "sample string 2",
    "Parent": 1,
    "Category": 0
  },
  {
    "ID": 1,
    "Name": "sample string 2",
    "Parent": 1,
    "Category": 0
  }
]

application/xml, text/xml

Sample:
<ArrayOfType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
  <Type>
    <Category>Cost</Category>
    <ID>1</ID>
    <Name>sample string 2</Name>
    <Parent>1</Parent>
  </Type>
  <Type>
    <Category>Cost</Category>
    <ID>1</ID>
    <Name>sample string 2</Name>
    <Parent>1</Parent>
  </Type>
  <Type>
    <Category>Cost</Category>
    <ID>1</ID>
    <Name>sample string 2</Name>
    <Parent>1</Parent>
  </Type>
</ArrayOfType>