GET api/SubCategories/GetSubCategoriesByParent/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of SubCategoriesDTO
NameDescriptionTypeAdditional information
SubcategoryID

integer

None.

CategoryID

integer

None.

SubCategoryName

string

None.

MediaImageID

integer

None.

ImageFileName

string

None.

PositionNo

integer

None.

subtitle

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "2",
    "SubcategoryID": 1,
    "CategoryID": 2,
    "SubCategoryName": "sample string 3",
    "MediaImageID": 4,
    "ImageFileName": "sample string 5",
    "PositionNo": 6,
    "subtitle": "sample string 7"
  },
  {
    "$ref": "2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSubCategoriesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JalsoApi.ViewModel">
  <SubCategoriesDTO>
    <CategoryID>2</CategoryID>
    <ImageFileName>sample string 5</ImageFileName>
    <MediaImageID>4</MediaImageID>
    <PositionNo>6</PositionNo>
    <SubCategoryName>sample string 3</SubCategoryName>
    <SubcategoryID>1</SubcategoryID>
    <subtitle>sample string 7</subtitle>
  </SubCategoriesDTO>
  <SubCategoriesDTO>
    <CategoryID>2</CategoryID>
    <ImageFileName>sample string 5</ImageFileName>
    <MediaImageID>4</MediaImageID>
    <PositionNo>6</PositionNo>
    <SubCategoryName>sample string 3</SubCategoryName>
    <SubcategoryID>1</SubcategoryID>
    <subtitle>sample string 7</subtitle>
  </SubCategoriesDTO>
</ArrayOfSubCategoriesDTO>