GET api/Types/Children?parent={parent}
Gets all the children types of a given type.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
parent | The ID of the parent type. |
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>