Queries about rest
Posted: Wed Apr 10, 2013 2:27 am
After trying plugging default broadleaf's REST services and i tried accessing by hitting
[color=#0000FF]http://localhost:8080/api/catalog/categories
i'm getting the following output . how to get proper output
<categories>
<category>
<id>1</id>
<name>Root</name>
<description>Root</description>
<urlKey>root</urlKey>
<activeStartDate>2013-04-03T14:21:56+05:30</activeStartDate>
</category>
<category>
<id>2</id>
<name>Primary Nav</name>
<description>Primary Nav</description>
<urlKey>primaryNav</urlKey>
<activeStartDate>2013-04-03T14:21:56+05:30</activeStartDate>
</category>
<category>
<id>2001</id>
<name>Home</name>
<description>Home</description>
<url>/</url>
<urlKey>home</urlKey>
<activeStartDate>2013-04-03T14:21:56+05:30</activeStartDate>
</category>
<category>
<id>2002</id>
<name>Hot Sauces</name>
<description>Hot Sauces</description>
<url>/hot-sauces</url>
<urlKey>hotSauces</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</category>
<category>
<id>2003</id>
<name>Merchandise</name>
<description>Merchandise</description>
<url>/merchandise</url>
<urlKey>merchandise</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</category>
<category>
<id>2004</id>
<name>Clearance</name>
<description>Clearance</description>
<url>/clearance</url>
<urlKey>clearance</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</category>
<category>
<id>2005</id>
<name>New to Hot Sauce?</name>
<description>New to Hot Sauce?</description>
<url>/new-to-hot-sauce</url>
<urlKey>newtoHotSauce</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</category>
<category>
<id>2006</id>
<name>FAQs</name>
<description>FAQs</description>
<url>/faq</url>
<urlKey>fAQs</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</categ
[color=#0000FF]http://localhost:8080/api/catalog/categories
i'm getting the following output . how to get proper output
<categories>
<category>
<id>1</id>
<name>Root</name>
<description>Root</description>
<urlKey>root</urlKey>
<activeStartDate>2013-04-03T14:21:56+05:30</activeStartDate>
</category>
<category>
<id>2</id>
<name>Primary Nav</name>
<description>Primary Nav</description>
<urlKey>primaryNav</urlKey>
<activeStartDate>2013-04-03T14:21:56+05:30</activeStartDate>
</category>
<category>
<id>2001</id>
<name>Home</name>
<description>Home</description>
<url>/</url>
<urlKey>home</urlKey>
<activeStartDate>2013-04-03T14:21:56+05:30</activeStartDate>
</category>
<category>
<id>2002</id>
<name>Hot Sauces</name>
<description>Hot Sauces</description>
<url>/hot-sauces</url>
<urlKey>hotSauces</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</category>
<category>
<id>2003</id>
<name>Merchandise</name>
<description>Merchandise</description>
<url>/merchandise</url>
<urlKey>merchandise</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</category>
<category>
<id>2004</id>
<name>Clearance</name>
<description>Clearance</description>
<url>/clearance</url>
<urlKey>clearance</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</category>
<category>
<id>2005</id>
<name>New to Hot Sauce?</name>
<description>New to Hot Sauce?</description>
<url>/new-to-hot-sauce</url>
<urlKey>newtoHotSauce</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</category>
<category>
<id>2006</id>
<name>FAQs</name>
<description>FAQs</description>
<url>/faq</url>
<urlKey>fAQs</urlKey>
<activeStartDate>2013-04-03T14:21:57+05:30</activeStartDate>
</categ