GET api/GetCategoryandSubcategoryList
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
AllDetailsModelName | Description | Type | Additional information |
---|---|---|---|
Category | Collection of CategoriesDetailsModel |
None. |
|
SubCategory | Collection of SubCategoryDetailsModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "Category": [ { "Cat_Id": 1, "Cat_Name": "sample string 1", "color": "sample string 2", "Image": "sample string 3" }, { "Cat_Id": 1, "Cat_Name": "sample string 1", "color": "sample string 2", "Image": "sample string 3" } ], "SubCategory": [ { "SubCat_Id": 1, "SubCat_Name": "sample string 1", "Image": "sample string 2", "Parent_Id": 1 }, { "SubCat_Id": 1, "SubCat_Name": "sample string 1", "Image": "sample string 2", "Parent_Id": 1 } ] }
application/xml, text/xml
Sample:
<AllDetailsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VullamAPIProject.Models"> <Category> <CategoriesDetailsModel> <Cat_Id>1</Cat_Id> <Cat_Name>sample string 1</Cat_Name> <Image>sample string 3</Image> <color>sample string 2</color> </CategoriesDetailsModel> <CategoriesDetailsModel> <Cat_Id>1</Cat_Id> <Cat_Name>sample string 1</Cat_Name> <Image>sample string 3</Image> <color>sample string 2</color> </CategoriesDetailsModel> </Category> <SubCategory> <SubCategoryDetailsModel> <Image>sample string 2</Image> <Parent_Id>1</Parent_Id> <SubCat_Id>1</SubCat_Id> <SubCat_Name>sample string 1</SubCat_Name> </SubCategoryDetailsModel> <SubCategoryDetailsModel> <Image>sample string 2</Image> <Parent_Id>1</Parent_Id> <SubCat_Id>1</SubCat_Id> <SubCat_Name>sample string 1</SubCat_Name> </SubCategoryDetailsModel> </SubCategory> </AllDetailsModel>