GET api/Category
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Category| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| InfoUrl | string |
None. |
|
| SubCategories | Collection of Subcategory |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"$id": "1",
"Id": 1,
"Name": "sample string 2",
"InfoUrl": "sample string 3",
"SubCategories": [
{
"$id": "2",
"Id": 1,
"Name": "sample string 2",
"InfoUrl": "sample string 3",
"Types": [
{
"$id": "3",
"Id": 1,
"Name": "sample string 2",
"InfoUrl": "sample string 3"
},
{
"$ref": "3"
}
]
},
{
"$ref": "2"
}
]
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConstructionCPD.API.Models">
<Category z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
<Id>1</Id>
<InfoUrl>sample string 3</InfoUrl>
<Name>sample string 2</Name>
<SubCategories>
<Subcategory z:Id="i2">
<Id>1</Id>
<InfoUrl>sample string 3</InfoUrl>
<Name>sample string 2</Name>
<Types>
<Type z:Id="i3">
<Id>1</Id>
<InfoUrl>sample string 3</InfoUrl>
<Name>sample string 2</Name>
</Type>
<Type z:Ref="i3" />
</Types>
</Subcategory>
<Subcategory z:Ref="i2" />
</SubCategories>
</Category>
<Category z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfCategory>